How to Confiure YUM server in Linux
What is yum?
The Yellowdog Updater, Modified (yum) is an open-source command-line package-management utility for Linux operating systems using the RPM Package Manager. Yum allows automatic updates, package and dependency management, on RPM-based distributions. yum works with software repositories (collections of packages), which can be accessed locally or over a network connection.
Step1: Prerequisites: Below are the rpm based packages need to be installed to continue.
vsftpd*, deltarpm*, python-deltarpm*, createrepo*
Install below packages using rpm command from /misc/cd/Server/Packages
Command: rpm -ivh vsftpd
Command: rpm -ivh deltarpm*
Command: rpm -ivh python-deltarpm*
Command: rpm -ivh createrepo*
Step2: Create directory Server under /var/ftp/pub/
Command: mkdir -p /var/ftp/pub/Server
Step3: Now move to /misc/cd/ and copy all the content to /var/ftp/pub/Server/
Command: cp -avr * /var/ftp/pub/Server
Step4: Now run createrepo command to compile all packaged together.
Command: createrepo /var/ftp/pub/Server
Step5: Restart the vsftpd service and make the service persistence post reboot.
Command: service vsftpd restart
Command: chkconfig --level 35 vsftpd on
Step6: Now create a yum repository configuration file called /etc/yum.repos.d/local.repo with the following contents:
Command: vi /etc/yum.repos.d/local.repo
[local]
name=my local repo
baseurl=ftp://192.168.0.200/pub/Server/Packages
enabled=1
gpgcheck=0
Step7: Test the configurations using below commands or try installing any package you wish to install:
Command: yum repolist
The Yellowdog Updater, Modified (yum) is an open-source command-line package-management utility for Linux operating systems using the RPM Package Manager. Yum allows automatic updates, package and dependency management, on RPM-based distributions. yum works with software repositories (collections of packages), which can be accessed locally or over a network connection.
Step1: Prerequisites: Below are the rpm based packages need to be installed to continue.
vsftpd*, deltarpm*, python-deltarpm*, createrepo*
Install below packages using rpm command from /misc/cd/Server/Packages
Command: rpm -ivh vsftpd
Command: rpm -ivh deltarpm*
Command: rpm -ivh python-deltarpm*
Command: rpm -ivh createrepo*
Step2: Create directory Server under /var/ftp/pub/
Command: mkdir -p /var/ftp/pub/Server
Step3: Now move to /misc/cd/ and copy all the content to /var/ftp/pub/Server/
Command: cp -avr * /var/ftp/pub/Server
Step4: Now run createrepo command to compile all packaged together.
Command: createrepo /var/ftp/pub/Server
Command: service vsftpd restart
Command: chkconfig --level 35 vsftpd on
Step6: Now create a yum repository configuration file called /etc/yum.repos.d/local.repo with the following contents:
Command: vi /etc/yum.repos.d/local.repo
[local]
name=my local repo
baseurl=ftp://192.168.0.200/pub/Server/Packages
enabled=1
gpgcheck=0
Step7: Test the configurations using below commands or try installing any package you wish to install:
Command: yum repolist
Hi Nitin thanks a lot this blog helped me.. :)
ReplyDelete