Friday, January 11, 2013

Easy learn linux command line- Part 12+1

Now we know how to use YUM tool or other command in Fedora and RedHat, But what can you ,If you install mint, ubuntu,Debian and Deb Base OS.
in this session we will learn some new command line for install, update, upgrade, remove and etc in Debian OS base.
Dpkg is default command in ubuntu and Debian for work with packages.

don't forget Linux system work intelligent and only download packages that dependence to original deb package.


Command Description
# dpkg -i [package.deb] install / upgrade a deb package   
# dpkg -r [package] remove a deb package from the system   
# dpkg -l show all deb packages installed on the system   
# dpkg -l | grep httpd show all deb packages with the name "httpd"   
# dpkg -s [package] obtain information on a specific package installed on system   
# dpkg -L [package] show list of files provided by a package installed on system   
# dpkg --contents [package.deb] show list of files provided by a package not yet installed   
# dpkg -S /bin/ping verify which package belongs to a given file   

No comments: