Wednesday, 23 September 2015
How To Configure Yum Server:YUM-Yellowdog Updater ...
How To Configure Yum Server:YUM-Yellowdog Updater ...: How To Configure Yum Server: YUM-Yellowdog Updater Modified *Yum is RPM(Redhat Package Manager)that is able to query for information ab...
Friday, 18 September 2015
How To Configure Yum Server:
YUM-Yellowdog Updater Modified*Yum is RPM(Redhat Package Manager)that is able to query for information about
i)available packages ,
ii)fetch packages from repositories,
iii)install and uninstall them.
*You must have superuser privileges in order to use Yum to install, update or remove packages on your system.
*Packages for repository server are:
i)delta.rpm
ii)Python-delta.rpm
iii)create.repo
Commands:
To check whether yum is configured or not.
#yum repolist all.
To configure yum server you need to copy packages of your RHEL anywhere in the "/".
#cp -ra /media/OS Cd Path/* /var/ftp/pub/yum
"*" Denotes everything that to be copied
"/var/ftp/pub/yum" is the directory where i will copy my packages.
You can check your Copy Status by opening a new terminal and going to the particular directory where your yum is being copied.
#du -sh
After completion of copying ,travel to the path given below to create a repo file .
#cd /yum/yum.repos.d/
repos.d is a repository.
you will find some repo files, do not delete them .and create a new repo file bby below command.
#vim abc.repo
you can use any editor to create a file either vim or vi.
After you enter into that file use insert tool by pressing "I", and start typing as below.
[abc]
name=abc
baseurl=file:///var/ftp/pub/yum
gpgcheck=0
:wq(save & quit)
Comments:[abc] it can be anyname.
baseurl its your yum path where your packages are kept.
gpgcheck is key based authentication.
0= if it is not registered with RHN.
1= if it is registered with RHN.
RHN=Redhat Network.
After completing save and quit. run the below commands.
#yum clean all
#yum update all
#yum list all or yum repolist all
yum repolist all will display your repo file with enabled comment.
easiest way to confirm that your yum is running properly.
#yum list all -- you will find all your packages will be listed in Black color texts.
Done.
Subscribe to:
Posts (Atom)