dpkg -i avg71flm_r28-1_i386.deb
apt-get -f install packagename=versionnumber
Remove an installed package except configuration files
Syntax
dpkg -r
Example
dpkg -r avg71flm_r28-1_i386.deb
6)Remove an installed package including configuration files
Syntax
dpkg -P
If you use -a is given instead of a package name, then all packages unpacked, but marked to be removed or purged in file /var/lib/dpkg/status, are removed or purged, respectively.
Example
dpkg -P avg71flm
List packages matching given pattern.
Example
dpkg -l vim
List all installed packages, along with package version and short description
Syntax
dpkg -l
Report status of specified package.
Example
dpkg -s ssh
List files installed to your system from package.
Example
dpkg -L apache2
List contents of a deb package.
Syntax
dpkg -c filename
Search for a filename from installed packages.
Example
dpkg -S /sbin/ifconfig
Display details about package
Example
dpkg -p cacti
Show information about a package.
Syntax
dpkg -I filename [control-file]
ref:
Debian/Ubuntu Package management Using dpkg
What to do when apt-get fails
沒有留言:
發佈留言