X

Rate Us :



Share with Friends :

Menu

Red Hat Package Manager(RPM) :

RPM is both a installation method as well as a package format.

RPM packages were originally created by Red Hat Linux, but now it can be used on many Linux distribution like CentOS, Fedora, SUSE, Mandriva etc.

By using RPM we can -

  • Install new applications




  • Upgrade existing applications




  • Remove installed applications




  • Query packages




Methods of installation :


Standalone method :-

Installing from a hard disk, CD, DVD or Pendrive.


Installing a package - [root@localhost~]#rpm <option> <package_name> --force Options : -i => install -v => verbose -h => display the progress in hashes -U => update existing package --force => install the package forcefully Querying a installation - [root@localhost~]#rpm <option> <package_name> Options : -q => Query the availability of the package -qa => Displays all installed packages -qc => Displays the configuration files of the packages -qi => Displays complete information of the package


Network installation method :-


  • Network File System(NFS)




  • File Transfer Protocol(FTP)




Network File System(NFS) :

Client system can access the data with the help of network mounting.


File Transfer Protocol(FTP) :

Client system can access the application with the help of downloading.


Server Name Package Name DNS bind* DHCP dhcp* FTP vsftpd* NFS nfs* , rpcbind* APACHE http* SMTP postfix* , sendmail* HTTPS mod-ssl* SAMBA samba* PROXY squid* LDAP openldap*


Installing package with the help of RPM :


To check NFS server for all the shared directories - [root@localhost~]#showmount -e 192.168.0.260 [server IP - 192.168.0.260] Create a directory - [root@localhost~]#mkdir /dir1 Mount NFS server directory - [root@localhost~]#mount 192.168.0.260:/var/ftp/pub/packages /dir1 [/var/ftp/pub/packages - it is the path of the directory on the server] Enter to mount point - [root@localhost~]#cd /dir1 To check the list of applications - [root@localhost~/dir1]#ls Install the packages with the help of RPM - [root@localhost~/dir1]#rpm -ivh --force tree* vsftpd* [tree is an application name] To check specific installed package - [root@localhost~/dir1]#rpm -q vsftpd To check all installed applications - [root@localhost~/dir1]#rpm -qa |less To check application configuration file - [root@localhost~/dir1]#rpm -qc vsftpd To check complete information about the package - [root@localhost~/dir1]#rpm -qi vsftpd To remove the package - [root@localhost~/dir1]#rpm -e vsftpd --nodeps To verify - [root@localhost~/dir1]#rpm -q vsftpd


Yellow dog Update, Modified(YUM) :

It is an interactive program used to install, remove, upgrade or query the packages. It is added from RHEL5 onwards.

It uses an repository that in XML based RPM metadata for installation.

It automatically computes dependencies and figure out what things should occur to install packages.

It can be used to install from a local media, FTP server or NFS server.


X

metadata :

Metadata is data that describes other data.

Installation of YUM :


[root@localhost~]#sudo apt-get install yum This command is used to install YUM.

Install the application with help of YUM :


[root@localhost~]#yum install bind* samba* nfs* -y Option : -y => it give confirmation to installation at once To check the list of installed packages - [root@localhost~]#yum list bind* To know the application information - [root@localhost~]#yum info bind* To remove installed package - [root@localhost~]#yum remove bind*