本期要点
Resources:
- http://users.telenet.be/mydotcom/howto/linux/package.htm
- http://www.bytehold.com/index.php/projects/176-debian-binary-package-and-repository-howto
- http://www.debian.org/doc/debian-policy/ch-controlfields.html
- Ubuntu wiki--complete
- Ubuntu wiki--basic
terminal
gcc hello.c -o happyhello
terminal
cd xxx
mkdir debian
cd debian
mkdir DEBIAN
vim control
control
Package: happyhello
Version: 1.0
Architecture: i386
Maintainer: Peter Wang <happypeter1983@gmail.com>
Installed-Size: 8
Depends: hello
Homepage: http://www.happycasts.net
Description: happypeter's helloWorld
the best software ever made!
Everything is cool
terminal
dpkg-deb --build debian/
sudo apt-get install dpkg-dev
dpkg-name debian.deb
sudo dpkg -i happyhello_1.0_i386.deb
sudo apt-get install hello
terminal
sudo apt-get remove happyhello
postinst
#!/bin/bash
echo "hi I am postinst"
prerm
#!/bin/bash
echo "hi I am prerm"
conffiles
/etc/happyhello/happyconf
terminal
dpkg -L happyhello
sudo apt-get purge happyhello
ls /etc/|grep happy
sudo apt-get remove happyhello
0评论
Markdown Cheat Sheet
| You write: | You get: |
|---|---|
[Link](http://example.com/) |
Link |
*Italic* |
Italic |
**Bold** |
Bold |
* Listed * Items |
|
``` puts "hello" ``` |
puts "hello"
|
