Apt#
Maintenance#
apt update apt upgrade apt dist-upgrade or apt full-upgrade apt autoremove systemctl reload postfix shutdown -r nowRestart note: Netcup SCP > Server > Steuerung > Garantierter Neustart
You can replace apt-get with aptitude
Source package list under
/etc/apt/sources.list /etc/apt/sources.list.d
example: /usr/share/doc/apt/examples/sources.list
# See sources.list(5) for more information, especialy # Remember that you can only use http, ftp or file URIs # CDROMs are managed through the apt-cdrom tool. deb http://http.us.debian.org/debian stable main contrib non-free deb http://security.debian.org stable/updates main contrib non-free # Uncomment if you want the apt-get source function to work #deb-src http://http.us.debian.org/debian stable main contrib non-free #deb-src http://security.debian.org stable/updates main contrib non-freedeb http://debian-multimedia.org stable main
Backports packages
deb http://archive.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse
Seach
apt-cache search <package>
Update package list
apt-get clean apt-get update
Update all installed packages:
aptitude dist-upgrade apt-get dist-upgrade
Deinstall
apt-get remove <package> apt-get autoremove openjdk-6-jdk
Check installed packages:
http://www.cyberciti.biz/tips/linux-debian-package-management-cheat-sheet.html
dpkg -l dpkg -l '*apache*'