Configuration of Yum (Yellowdog Updater Modifier)
For configuration of yum firstly we insert the Linux bootable DVD or CD and mount the CD or DVD in /mnt through
# mount /dev/cdrom /mnt
# cd /mnt
# ll
# cd /mnt/Server
# Server]#rpm –ivh --force vsftpd+tab
# cd ..
mnt]# cp –rav * /var/ftp/pub (For copy all the DVD contents in pub
directory)
# vim /etc/yum.repos.d/Server.repo (For open the Repository file and write
below lines in this file.)
[Server]
name=Server repository
baseurl=file:///var/ftp/pub/Server
gpgcheck=0
[VT]
name=VT repository
baseurl=file:///var/ftp/pub/VT
gpgcheck=0
[Update]
name=Update repository
baseurl=file:///var/ftp/pub/
gpgcheck=0
:wq!
# cd /var/ftp/pub/Server (For go to Server dir)
# Server]# rpm –ivh createrepo + tab (Use the tab key for proper file.)
# createrepo –v /var/ftp/pub/Server <Enter>
(After fire this command 2113 Server RPM arranged by alphabetically and one error will come remove that and fire above command again for arrange the files.)
If u get .olddata error run the command
# rm –rf /var/ftp/pub/Server/.olddata (Use the tab key for proper file.)
# createrepo –v /var/ftp/pub/VT <Enter>
(After fire this command 31 VT RPM arranged by alphabetically and one error will come remove that and fire above command again for arrange the files.)
If u get .olddata error run the command
# rm –rf /var/ftp/pub/VT/.olddata (Use the tab key for proper file.)
# createrepo –v /var/ftp/pub/ <Enter>
(After fire this command 2208 Server RPM arranged by alphabetically.)
Install packages through yum:-
# yum install RPM name (For install the particular RPM)
# yum remove RPM name (For remove the particular RPM)
# yum –u RPM name (For updating the RPM)
No comments:
Post a Comment