Slide

  • LINUX

    LINUX:In 1969 AT&T made a decision to withdraw Multics and go with GECOS (General Electric Comprehensive Operating Supervisor / System), with AT & T in Bells Lab when Multics was withdrawn some of the programmers named Ken Thompson and Dennis Ritchie decided to rewrite operating system in order to support low cost computer..To Know More

    CLICK HERE

  • MICROSOFT

    MICROSOFT:Microsoft was established to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the home computer operating system market with MS-DOS in the mid-1980s,followed by the Microsoft Windows line of operating systems. To Know More

    CLICK HERE

  • CISCO

    CISCO:During the early 1980s, there was a married couple namely Len and Sandy Bosack who used to work in two different departments of computer located in Stanford University. This couple was facing problem in making their computers communicate with each other To Know More

    CLICK HERE

showinfo=1

Using RPM To Install Packages



RPM

What is Package ?
In the generic sense, an RPM package is a container of files. It includes the group of files associated with a specific program or application, which normally includes binary installation scripts, as well as configuration and documentation files. It also includes instructions on how and where these files should be installed and uninstalled.

What is RPM?
RPM is a powerful software manager. It can install, remove, query, and verify the software on your system.Rpm is more than a Red Hat specific tool. The RPM Package Manager greatly simplifies the distribution, installation, upgradation. And removal of software on RHEL systems.Software to be installed using rpm is distributed through rpm package files, which are essentially compressed archives of files and associated dependency  information. Package files are named using the following format:





RPM Options:-
1.  –i  =  to install the package
2.  –v =  verbose
3.  –h =  to display the progress in hashes
4.  --force =  to install packeges forcefully
5.  --aid            =  to install packages along with dependencies
6.  –U = to upgrade the existing package
7.  –e =  to uninstall the packages from the system
8. –nodeps =  to uninstall packages even if dependencies are there
9. –q =  to queries any installed packages
10. –qa = to queries all install packages
11. –qi =  To show general information
12. –ql =  To show list of package files installed
13. –qip =  To show general information of uninstalled package
14. –qlp =  To show list of packages of uninstalled package

1. Installing Packag using RPM
[root@server1 ~]# cd /misc/cd                               …….
[root@server1 cd]#ll                                              …….
total 4038
-r--r--r-- 3 root root   8794 Sep  3  2010 EULA
-r--r--r-- 3 root root  18092 Jun 30  2010 GPL
dr-xr-xr-x 3 root root   2048 Sep 23  2010 HighAvailability
dr-xr-xr-x 3 root root   2048 Sep 23  2010 images
dr-xr-xr-x 2 root root   2048 Sep 23  2010 isolinux
dr-xr-xr-x 3 root root   2048 Sep 23  2010 LoadBalancer
-r--r--r-- 2 root root    114 Sep 23  2010 media.repo


dr-xr-xr-x 2 root root 477184 Sep 23  2010 Packages
-r--r--r-- 2 root root  16435 Sep  2  2010 README
-r--r--r-- 3 root root 114407 Aug 24  2010 RELEASE-NOTES-as-IN.html
-r--r--r-- 3 root root 214163 Aug 24  2010 RELEASE-NOTES-bn-IN.html
-r--r--r-- 3 root root 125070 Aug 24  2010 RELEASE-NOTES-de-DE.html
-r--r--r-- 3 root root 114407 Aug 19  2010 RELEASE-NOTES-en-US.html
-r--r--r-- 3 root root 123333 Aug 24  2010 RELEASE-NOTES-es-ES.html
-r--r--r-- 3 root root 128753 Aug 24  2010 RELEASE-NOTES-fr-FR.html
-r--r--r-- 3 root root 191783 Aug 24  2010 RELEASE-NOTES-gu-IN.html
-r--r--r-- 3 root root 191872 Aug 24  2010 RELEASE-NOTES-hi-IN.html
-r--r--r-- 3 root root 122883 Aug 24  2010 RELEASE-NOTES-it-IT.html
-r--r--r-- 3 root root 136794 Aug 24  2010 RELEASE-NOTES-ja-JP.html
-r--r--r-- 3 root root 222514 Aug 24  2010 RELEASE-NOTES-kn-IN.html
-r--r--r-- 3 root root 126404 Aug 24  2010 RELEASE-NOTES-ko-KR.html
-r--r--r-- 3 root root 114407 Aug 24  2010 RELEASE-NOTES-ml-IN.html
-r--r--r-- 3 root root 197443 Aug 24  2010 RELEASE-NOTES-mr-IN.html
-r--r--r-- 3 root root 114909 Aug 24  2010 RELEASE-NOTES-or-IN.html
-r--r--r-- 3 root root 183285 Aug 24  2010 RELEASE-NOTES-pa-IN.html
-r--r--r-- 3 root root 122056 Aug 24  2010 RELEASE-NOTES-pt-BR.html
-r--r--r-- 3 root root 147783 Aug 24  2010 RELEASE-NOTES-ru-RU.html
-r--r--r-- 3 root root   5125 May  5  2010 RELEASE-NOTES-si-LK.html
-r--r--r-- 3 root root 206085 Aug 24  2010 RELEASE-NOTES-ta-IN.html
-r--r--r-- 3 root root 216015 Aug 24  2010 RELEASE-NOTES-te-IN.html
-r--r--r-- 3 root root 227744 Aug 24  2010 RELEASE-NOTES-zh-CN.html
-r--r--r-- 3 root root 230403 Aug 20  2010 RELEASE-NOTES-zh-TW.html
lr-xr-xr-x 1 root root     15 Sep 23  2010 repodata -> Server/repodata
dr-xr-xr-x 3 root root   2048 Sep 23  2010 ResilientStorage
-r--r--r-- 3 root root   3375 Sep  3  2010 RPM-GPG-KEY-redhat-beta
-r--r--r-- 3 root root   3211 Sep  3  2010 RPM-GPG-KEY-redhat-release
dr-xr-xr-x 3 root root   2048 Sep 23  2010 Server
-r--r--r-- 1 root root   9006 Sep 23  2010 TRANS.TBL
or
[root@server1 ~]# cd   /media/                                    …….
[root@server1 media]# ll                                              …….
total 6
dr-xr-xr-x 9 root root 6144 Sep 23  2010 RHEL_6.0 i386 Disc 1
[root@server1 media]# cd  RHEL_6.0\ i386\ Disc\ 1/              …….

note:- RHEL_6.0\ i386\ Disc\ 1 is the RHEL DVD

[root@server1 RHEL_6.0 i386 Disc 1]# cd Server/                 …….
[root@server1 Server]# cd Packages/                                      …….

[root@server1 Packages]# rpm -ivh dhcp*                              …….
                                                           
note:- dhcp is the package name * denotes the version number....

warning: dhcp-4.1.1-12.P1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
1:dhcp                   ########################################### [100%]

2. To queries any installed packages.
[root@server1 ~]# cd /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages       
[root@server1 Packages]# rpm  -q dhcp                   
dhcp-4.1.1-12.P1.el6.i686

3. To queries all installed packages.
[root@server1 ~]# rpm  -qa                            
gnome-media-libs-2.29.91-6.el6.i686
libdaemon-0.14-1.el6.i686
foomatic-4.0.4-1.el6.i686
cyrus-sasl-plain-2.1.23-8.el6.i686
filesystem-2.4.30-2.1.el6.i686
python-iwlib-0.1-1.2.el6.i686

4. To show the general information about installed packages.
[root@server1 ~]# cd  /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages                
[root@server1 Packages]# rpm -qi dhcp         
Name                 : dhcp                         Relocations: (not relocatable)
Version              : 4.1.1                        Vendor: Red Hat, Inc.
Release              : 12.P1.el6                  Build Date: Fri 03 Sep 2010 10:22:07 PM IST
Install Date: Tue 01 Jan 2002 03:07:15 PM IST      Build Host: x86-002.build.bos.redhat.com
Group                : System Environment/Daemons    Source RPM: dhcp-4.1.1-12.P1.el6.src.rpm
Size                   : 2190718                          License: ISC
Signature           : RSA/8, Wed 08 Sep 2010 12:20:41 AM IST, Key ID 199e2f91fd431d51
Packager           : Red Hat, Inc.
URL                  : http://isc.org/products/DHCP/
Summary            : Dynamic host configuration protocol software
Description         :
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows
individual devices on an IP network to get their own network
configuration information (IP address, subnetmask, broadcast address,
etc.) from a DHCP server. The overall purpose of DHCP is to make it
easier to administer a large network.  The dhcp package includes the
ISC DHCP service and relay agent.

To use DHCP on your network, install a DHCP service (or relay agent),
and on clients run a DHCP client daemon.  The dhcp package provides
the ISC DHCP service and relay agent.

5. To show list of package file installed.
[root@server1 ~]# cd  /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages                    …….
[root@server1 Packages]# rpm -ql dhcp
/etc/dhcp
/etc/dhcp/dhcpd.conf
/etc/dhcp/dhcpd6.conf
/etc/openldap/schema/dhcp.schema
/etc/rc.d/init.d/dhcpd
/etc/rc.d/init.d/dhcpd6
/etc/rc.d/init.d/dhcrelay
/etc/sysconfig/dhcpd
/etc/sysconfig/dhcpd6
/etc/sysconfig/dhcrelay
/usr/bin/omshell
/usr/sbin/dhcpd
/usr/sbin/dhcrelay
/usr/share/doc/dhcp-4.1.1
/usr/share/doc/dhcp-4.1.1/3.0b1-lease-convert
/usr/share/doc/dhcp-4.1.1/IANA-arp-parameters
/usr/share/doc/dhcp-4.1.1/LICENSE
/usr/share/doc/dhcp-4.1.1/README
/usr/share/doc/dhcp-4.1.1/README.ldap
/usr/share/doc/dhcp-4.1.1/RELNOTES
/usr/share/doc/dhcp-4.1.1/References.txt
/usr/share/doc/dhcp-4.1.1/api+protocol
/usr/share/doc/dhcp-4.1.1/dhclient-tz-exithook.sh
/usr/share/doc/dhcp-4.1.1/dhcpd-conf-to-ldap
/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample
/usr/share/doc/dhcp-4.1.1/dhcpd6.conf.sample
/usr/share/doc/dhcp-4.1.1/draft-ietf-dhc-ldap-schema-01.txt
/usr/share/doc/dhcp-4.1.1/ms2isc
/usr/share/doc/dhcp-4.1.1/ms2isc/Registry.perlmodule
/usr/share/doc/dhcp-4.1.1/ms2isc/ms2isc.pl
/usr/share/doc/dhcp-4.1.1/ms2isc/readme.txt
/usr/share/doc/dhcp-4.1.1/sethostname.sh
/usr/share/doc/dhcp-4.1.1/solaris.init
/usr/share/man/man1/omshell.1.gz
/usr/share/man/man5/dhcp-eval.5.gz
/usr/share/man/man5/dhcp-options.5.gz
/usr/share/man/man5/dhcpd.conf.5.gz
/usr/share/man/man5/dhcpd.leases.5.gz
/usr/share/man/man8/dhcpd.8.gz
/usr/share/man/man8/dhcrelay.8.gz
/var/lib/dhcpd
/var/lib/dhcpd/dhcpd.leases
/var/lib/dhcpd/dhcpd6.leases

6. To show the general information about installed packages.
[root@server1 ~]# cd  /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages                    …….
[root@server1 Packages]# rpm -qip bind*                   …….
warning: bind-9.7.0-5.P2.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Name              : bind                         Relocations: (not relocatable)
Version            : 9.7.0                        Vendor: Red Hat, Inc.
Release            : 5.P2.el6                   Build Date: Wed 26 May 2010 02:21:41 PM IST
Install Date       : (not installed)        Build Host: x86-002.build.bos.redhat.com
Group               : System Environment/Daemons    Source RPM: bind-9.7.0-5.P2.el6.src.rpm
Size                   : 6664309                          License: ISC
Signature           : RSA/8, Mon 16 Aug 2010 09:01:38 PM IST, Key ID 199e2f91fd431d51
Packager           : Red Hat, Inc.
URL                 : http://www.isc.org/products/BIND/
Summary          : The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server
Description       :
BIND (Berkeley Internet Name Domain) is an implementation of the DNS
(Domain Name System) protocols. BIND includes a DNS server (named),
which resolves host names to IP addresses; a resolver library
(routines for applications to use when interfacing with DNS); and
tools for verifying that the DNS server is operating properly.
Name              : bind-chroot                  Relocations: /var/named/chroot
Version            : 9.7.0                             Vendor: Red Hat, Inc.
Release            : 5.P2.el6                      Build Date: Wed 26 May 2010 02:21:41 PM IST
Install Date       : (not installed)               Build Host: x86-002.build.bos.redhat.com
Group              : System Environment/Daemons    Source RPM: bind-9.7.0-5.P2.el6.src.rpm
Size                  : 0                                License: ISC
Signature          : RSA/8, Mon 16 Aug 2010 09:01:42 PM IST, Key ID 199e2f91fd431d51
Packager          : Red Hat, Inc.
URL                 : http://www.isc.org/products/BIND/
Summary           : A chroot runtime environment for the ISC BIND DNS server, named(8)
Description        :
This package contains a tree of files which can be used as a
chroot(2) jail for the named(8) program from the BIND package.
Based on the code from Jan "Yenya" Kasprzak
Name                : bind-dyndb-ldap              Relocations: (not relocatable)
Version              : 0.1.0                             Vendor: Red Hat, Inc.
Release              : 0.9.b.el6                     Build Date: Wed 24 Mar 2010 05:32:15 PM IST
Install Date         : (not installed)               Build Host: x86-004.build.bos.redhat.com
Group                 : System Environment/Libraries   Source RPM: bind-dyndb-ldap-0.1.0-0.9.b.el6.src.rpm
Size                     : 116875                           License: GPLv2+
Signature             : RSA/8, Mon 16 Aug 2010 09:01:59 PM IST, Key ID 199e2f91fd431d51
Package              : Red Hat, Inc.
URL                   : https://fedorahosted.org/bind-dyndb-ldap
Summary            : LDAP back-end plug-in for BIND
Description         :
This package provides an LDAP back-end plug-in for BIND. It features
support for dynamic updates and internal caching, to lift the load
off of your LDAP server.
Name               : bind-libs                    Relocations: (not relocatable)
Version             : 9.7.0                             Vendor: Red Hat, Inc.
Release             : 5.P2.el6                      Build Date: Wed 26 May 2010 02:21:41 PM IST
Install Date        : (not installed)               Build Host: x86-002.build.bos.redhat.com
Group               : Applications/System           Source RPM: bind-9.7.0-5.P2.el6.src.rpm
Size                  : 2285184                          License: ISC
Signature          : RSA/8, Mon 16 Aug 2010 09:02:07 PM IST, Key ID 199e2f91fd431d51
Packager          : Red Hat, Inc.
URL                 : http://www.isc.org/products/BIND/
Summary           : Libraries used by the BIND DNS packages
Description        :
Contains libraries used by both the bind server package as well as the utils
packages.


You should install bind-utils if you need to get information from DNS name
servers.

7.To show list of packages of uninstalled packages.
[root@server1 ~]# cd  /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages                    …….
[root@server1 Packages]# rpm -qlp bind*                   …….
warning: bind-9.7.0-5.P2.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
/etc/NetworkManager/dispatcher.d/13-named
/etc/logrotate.d/named
/etc/named
/etc/named.conf
/etc/named.iscdlv.key
/etc/named.rfc1912.zones
/etc/rc.d/init.d/named
/etc/rndc.conf.............................\
......................................................

It will show you a complete list..........................


7(A). To show list of packages of uninstalled package
[root@server1 ~]# cd  /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages                    …….
[root@server1 Packages]# rpm -qlp telnet*                 …….
warning: telnet-0.17-46.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
/usr/bin/telnet
/usr/share/man/man1/telnet.1.gz
/etc/xinetd.d/telnet
/usr/sbin/in.telnetd
/usr/share/man/man5/issue.net.5.gz
/usr/share/man/man8/in.telnetd.8.gz
/usr/share/man/man8/telnetd.8.gz

8. To remove installed package.
[root@server1 ~]# cd /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages         …….
[root@server1 Packages]# rpm -e dhcp                                   …….
[root@server1 Packages]# rpm -q dhcp                                   …….
package dhcp is not installed

9. To install package in any case with forcefully.
[root@server1 ~]# cd /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages         …….
[root@server1 Packages]# rpm -ivh --force  dhcp*     …….
warning: dhcp-4.1.1-12.P1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:dhcp                   ########################################### [100%]

10. To install packages with any dependent package.
[root@server1 ~]# cd /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages         …….
[root@server1 Packages]# rpm -ivh --aid dhcp*          …….
warning: dhcp-4.1.1-12.P1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:dhcp                   ########################################### [100%]

11. To remove packages without removing any dependent packages.
[root@server1 ~]# cd /media/RHEL_6.0\ i386\ Disc\ 1/Server/Packages         …….
[root@server1 Packages]# rpm -ivh  --nodeps dhcp*  …….
warning: dhcp-4.1.1-12.P1.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
   1:dhcp 












14 comments:

  1. Hey there thanks for showing me this. I must say that your blogpost was the most enjoying read I've seen in a long time. Greetings from personal trainer berlin
    stpetehealth.com |

    ReplyDelete
  2. A good informative post that you have shared and appreciate your work for sharing the information.
    www.businessplancomplete.com |

    ReplyDelete
  3. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
    numinustech.com |

    ReplyDelete
  4. This is the first time I visited this blog. Really this is awesome work with the blog.
    home-patubjai.com |

    ReplyDelete
  5. I’m happy to find so many useful info here in the post, we need work out more techniques in this regard, thanks for sharing.
    http://www.autosignment.com |

    ReplyDelete
  6. I agree with you. This post is truly inspiring. I like your post and everything you share with us is current and very informative, I want to bookmark the page so I can return here from you that you have done a fantastic job.
    5280foodtruck |

    ReplyDelete
  7. Thank you for another fantastic posting. Where else could anyone get that kind of information in such a perfect way of writing? I have a speech next week, and I was looking for more info ;)
    servewell.us |

    ReplyDelete
  8. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.http://www.chasehometownmenus.com |

    ReplyDelete
  9. Write mega, thats all I have to clear. sbobet Just, it seems as equal proviso you relied by the video to dispose your point. You evidently compose outdated what youre talking about, why lob passed on your intelligence by without delay relocation videos to your weblog when you could follow charitable us impressive enlightening to read?

    ReplyDelete
  10. Write mega, thats all I have to clear. sbobet Just, it seems as equal proviso you relied by the video to dispose your point. You evidently compose outdated what youre talking about, why lob passed on your intelligence by without delay relocation videos to your weblog when you could follow charitable us impressive enlightening to read?
    http://www.cureforyoutech.com |

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........

For Latest Updates: Subscribe Now | | Test Your Knowledge, Take a Quiz now Click Here | | Site Best Viewed In Firefox

X