####YUM CONFIGURATION####
How to configure yum and yum local repository.
The ability to centralize packages (update)
Resolved all dependencies
One small thing you can use yum through ftp,http
Just follow this step ...
Create a simple directory.
1.[root@localhost ~]# mkdir /packages
Copy to all packages in dvd to this directory -> /packages
2.[root@localhost ~]# cp -rfv /media/RHEL_6.0\ x86_64\ Disc\ 1/Packages/* /packages/
Switch the packges directory.
3.[root@localhost ~]# cd /packages/
Install this package 'createrepo'
first install 2 dependencies package.
4.[root@localhost packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
5.[root@localhost packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
Now install 'createrepo' package.
6.[root@localhost packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
Switch out this packages directory.
7.[root@localhost ~]# createrepo -v /packages/
Switch in the yum configuration file.
8.[root@localhost ~]# cd /etc/yum.repos.d/
Create a file for your repository name ending in .repo containing.
9.[root@localhost yum.repos.d]# vim packages.repo
In the file following entry should be this
[packaegs]
name=mypackages
baseurl=file:///packages
enabled=1
gpgcheck=0
Exit this file now last command run is
10.[root@localhost ~]# yum clean all
it's done now check yum command
11.[root@localhost ~]# yum install dhcp*
*****enjoy the magic****
How to configure yum and yum local repository.
The ability to centralize packages (update)
Resolved all dependencies
One small thing you can use yum through ftp,http
Just follow this step ...
Create a simple directory.
1.[root@localhost ~]# mkdir /packages
Copy to all packages in dvd to this directory -> /packages
2.[root@localhost ~]# cp -rfv /media/RHEL_6.0\ x86_64\ Disc\ 1/Packages/* /packages/
Switch the packges directory.
3.[root@localhost ~]# cd /packages/
Install this package 'createrepo'
first install 2 dependencies package.
4.[root@localhost packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
5.[root@localhost packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
Now install 'createrepo' package.
6.[root@localhost packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
Switch out this packages directory.
7.[root@localhost ~]# createrepo -v /packages/
Switch in the yum configuration file.
8.[root@localhost ~]# cd /etc/yum.repos.d/
Create a file for your repository name ending in .repo containing.
9.[root@localhost yum.repos.d]# vim packages.repo
In the file following entry should be this
[packaegs]
name=mypackages
baseurl=file:///packages
enabled=1
gpgcheck=0
Exit this file now last command run is
10.[root@localhost ~]# yum clean all
it's done now check yum command
11.[root@localhost ~]# yum install dhcp*
*****enjoy the magic****