Wednesday, December 12, 2012

Easy learn linux command line- Part 11

tonight we decide to write about RPM Packages.RPM Packages use to Fedora and Red hat OS Base.
If you don't use of YUM packages installer, its easiest way to install your favorite Application on the Linux fedora,red hat and like it.
you learn how to install packages, upgrade it or them, remove packages, get information about packages and ... .
this post is most usage between fedora and red hat user. 


Command Description
# rpm -ivh [package.rpm] install a rpm package   
# rpm -ivh --nodeeps [package.rpm] install a rpm package ignoring dependencies requests   
# rpm -U [package.rpm] upgrade a rpm package without changing configuration files   
# rpm -F [package.rpm] upgrade a rpm package only if it is already installed   
# rpm -e [package] remove a rpm package   
# rpm -qa show all rpm packages installed on the system   
# rpm -qa | grep httpd show all rpm packages with the name "httpd" 
# rpm -qi [package] obtain information on a specific package installed  
# rpm -qg "System Environment/Daemons" show rpm packages of a group software   
# rpm -ql [package] show list of files provided by a rpm package installed   
# rpm -qc [package] show list of configuration files provided by a rpm package installed   
# rpm -q [package] --whatrequires show list of dependencies required for a rpm packet   
# rpm -q [package] --whatprovides show capability provided by a rpm package   
# rpm -q [package] --scripts show scripts started during installation / removal   
# rpm -q [package] --changelog show history of revisions of a rpm package   
# rpm -qf /etc/httpd/conf/httpd.conf verify which rpm package belongs to a given file   
# rpm -qp [package.rpm] -l show list of files provided by a rpm package not yet installed   
# rpm --import /media/cdrom/RPM-GPG-KEY import public-key digital signature   
# rpm --checksig [package.rpm] verify the integrity of a rpm package   
# rpm -qa gpg-pubkey verify integrity of all rpm packages installed   
# rpm -V [package] check file size, permissions, type, owner, group, MD5 checksum and last modification   
# rpm -Va check all rpm packages installed on the system - use with caution   
# rpm -Vp [package.rpm] verify a rpm package not yet installed   
# rpm -ivh /usr/src/redhat/RPMS/`arch`/[package.rpm] install a package built from a rpm source   
# rpm2cpio [package.rpm] | cpio --extract --make-directories *bin* extract executable file from a rpm package  
# rpmbuild --rebuild [package.src.rpm] build a rpm package from a rpm source   

No comments: