How to Set Up and Configure latest yum repository on CentOS


Set Up and Configure latest yum repository on CentOS: We can upgrade CentOS easily by Setup Local Yum Repository for latest packages in CentOS 7.

Also visit Upgrade CentOS to latest version using yum update command also you can visit update CentOS packages using yum update command without upgrading to minor release for updating packages in CentOS.

Some time we can’t find updated packages in default repository with CentOS. For that we can Set Up and Configure latest yum repository on CentOS using trick below.

Set Up and Configure latest yum repository on CentOS: 5 Easy Steps

Step 1: Visit CentOS package repository
https://buildlogs.centos.org/ and http://mirror.centos.org/centos/ are the CentOS websites where all updated packages are available. Go to button of the site brows and locate your package where you can download CentOS packages. Using that directory we can create CentOS 7 yum repository.

Step 2: Setup Local Yum Repository
# cd /etc/yum.repos.d
Create new repo file

# vi centOS.repo
Add below lines (c7.1908.u.x86_64 is the directory where my package is located) and save the file.
[C7]
name=c7.1980
baseurl=https://buildlogs.centos.org/c7.1908.u.x86_64/
gpgcheck=0
enabled=1

Step 3: Cleanup yum repository
# yum clean all

Step 4: Update yum repository to get latest packages
# yum makecache fast

Step 5: Check available updated packages for a specific package
# yum list <Package-Name>


Comments

Post a Comment

Popular posts from this blog

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.