manage .deb package in ubuntu
install a source package :
If
dpkg
reports an error due to dependency problems, you can run
sudo apt-get install -f
to download the missing dependencies and configure everything.
To remove a Debian (Ubuntu) package (.deb):
To Reconfigure/Repair an installed Debian (Ubuntu) package (.deb):
for detial U can visit: http://askubuntu.com/questions/40779/how-do-i-install-a-deb-file-via-the-command-line
install a source package :
点击(此处)折叠或打开
- warrior@warrior:~/Downloads$ sudo dpkg -i xpdf_3.03-16+experimental2_amd64.deb
- [sudo] password for warrior:
- Selecting previously unselected package xpdf.
- (Reading database ... 285114 files and directories currently installed.)
- Preparing to unpack xpdf_3.03-16+experimental2_amd64.deb ...
- Unpacking xpdf (3.03-16+experimental2) ...
- Setting up xpdf (3.03-16+experimental2) ...
- Processing triggers for mime-support (3.54ubuntu1.1) ...
- Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
- Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
- Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
- Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
- Rebuilding /usr/share/applications/bamf-2.index...
To remove a Debian (Ubuntu) package (.deb):
点击(此处)折叠或打开
- sudo dpkg -r packagename
点击(此处)折叠或打开
- sudo dpkg-reconfigure packagename