Debian Package Management - Paiet/Tech-Journal-for-Everything GitHub Wiki
- Using Debian Packages
- Originates with the Debian distro
- Adopted to other Linux distros (Ubuntu, Mint, Xandros)
- Debian supports many different CPU architectures
- x86, x86-64, IA-64, ARM, PowerPC, Alpha, 680x0, MIPS and SPARC
- x86 and x86-64 native
Package Naming Convention
vim_8.0.0197-4_amd64.deb
--- -------- - -----
A B C D
A = Package Name
B = Version #
C = Build #
D = Architecture
- Architectures
- x86_64 / amd64
- i386
- ARM
- noarch
Install a local package with dpkg
dpkg -i webmin_1.850_all.deb
-i
or --install
Webmin dependancies apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
List details of an installed package with dpkg
dpkg -I webmin_1.850_all.deb
dpkg -I webmin
-I
or --info
(Info about installable)
Removing a package with dpkg
dpkg -r webmin
-r
or --remove
-P
or --purge
(removes package and configs)
Installing a package with apt-get
Advanced Packaging Tool (APT)
NOTE: apt-get
is being replaced by apt
apt-get install httpd
apt-get remove httpd
apt-get purge httpd
apt install httpd
apt remove httpd
apt purge httpd
Finding a package with apt/apt-get
With apt-get apt search httpd
With apt apt-cache search httpd
apt repositories
/etc/apt/sources.list
deb http://download.webmin.com/download/repository sarge contrib
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
apt-get update
apt-get install apt-transport-https
apt-get install webmin
Other Debian-based package managers
dselect aptitude Synaptic