Wednesday, 20 April 2011

How to Installing package (RPM)



using rpm

1.Installing package                      #rpm -i package_name
                                          #rpm -ivh package_name
2.Finding the repository server path      #showmount -e repository_server
3.Uninstalling package                    #rpm -e package_name
3.Upgrade package                         #rpm -U package_name [if mentioned package are not installed in that U option just install the package]
                                          #rpm -Uvh package_name
                                          #rpm -F package_name [if mentioned package are not installed it will not work]
4.Query about installed rpm package       #rpm -qa                [it will list all package are installed]   
                                          #rpm -qf /file_name     [prints package in which the file resides]
                                          #rpm -ql package_name   [prints file list of package]
                                          #rpm -qi package_name   [prints package information]
5.Query about not installed rpm package   #rpm -qlp package_name [listing files which are packaged]
                                          #rpm -qip package_name [getting package information]
VERIFY PACKAGE INTEGRITY
1. Import key from installation CD
2. Query list of imported public key
3. Verify signature of a package file
4. Install rpm package or rpmfile

1. Import key from installation CD          #rpm --import RPM-GPG-KEY-redhat-release
2. Query list of imported public key        #rpm -qa gpg-pubkey
3. Verify signature of a package file       #rpm -K rpmfile                                                                         [i.e zip-2.3-8.i386.rpm]
                                                              or
                                                            #rpm --checksig rmpfile                                                             [i.e zip-2.3-8.i386.rpm
4. Install rpm package    or file                #yum install package                                                                 [i.e zip-*]
                                                             or
                                                            #yum localinstall rpmfile                                                                        [i.e zip-2.3-8.i386.rpm

5.verify installed package    #rpm -v package_name
                              #rpm -va

No comments:

Post a Comment