Linux Installers Flashcards
apt basics
apt reads /etc/apt/sources.list
which contains repositories
apt directs installations/uninstallations to dpkg
Update the local apt cache with listing of packages, so to search for packages later on from this apt-cache
apt-get update
Upgrade packages that have upgrades available
apt-get upgrade
Install/remove packages with apt
Remove conf files that left after removing a package
apt-get install apache2
apt-get remove apache2
apt autoremove
Remove the package with its conf files with apt
apt-get purge chromium-browser
Upgrade all packages up to the next release with apt-get
apt-get dist-upgrade
so all new necessary packages will be installed while upgrading the current package
Download a package but not install this with apt
apt-get download htop
Search for packages with apt
apt-cache search apache
List basic info about a package with apt
apt-cache show apache2
List detailed info about a package with apt
apt-cache showpkg apache2
Display detailed info on a package with dpkg
Display basic info on a package with dpkg
- dpkg –info htop_2.01.deb
2. dpkg –status htop_2.01.deb
List packages that match the string provided with dpkg
dpkg -l nano
Install package with dpkg
Remove package
dpkg -i htop_2.01.deb
dpkg -r htop
List all files installed with dpkg package
dpkg -L htop
Remove package with dpkg with conf files
dpkg -P nano