Debian Command CheatSheet
If you need to setup/install Debian. Please follow this post.
1. Removing a service from startup
# update-rc.d -f samba remove |
2. Installing a service on boot
update-rc.d myServiceName start 80 2 3 4 5 . stop 15 0 1 6
3. Specifying Debian Sources
#vim /etc/apt/sources.list
#SID:
deb http://debian.cn99.com/debian unstable main
deb-src http://debian.cn99.com/debian unstable main
#LENNY:
#deb http://debian.cn99.com/debian testing main
#deb-src http://debian.cn99.com/debian testing main
#ETCH
#deb http://debian.cn99.com/debian etch main
#deb-src http://debian.cn99.com/debian etch main
4. Searching for a package from the repository
apt-cache search [package name] |
5. Installing a package
apt-get install [package name] |
6. Purging an installed/configured package
aptitude purge [package name] |
7. Upgrade a debian distro
apt-get dist-upgrade |