Some 3rd part repositories have their own rpm that you can use.

Here is how to do it manually in Cent OS.

For example if you have a repository that exists at subdomain.domain.com.
Note: Replace subdomain, domain, and com with your link.

# cd /etc/yum.repos.d

Add a file that points to the repository name and location.

# nano subdomain

Now type the following in the new file (or copy/paste the following changing the names and locations to the correct repository):

[subdomain]
name=Subdomain for RHEL/ CentOS $releasever – $basearch
baseurl=http://subdomain.domain.com/centos/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://subdomain.domain.com/RPM-GPG-KEY.txt

Save the changes and then exit out of nano.

Now import the PGP keys for the repository.

# rpm –import http://subdomain.domain.com/RPM-GPG-KEY.txt

Now run your update and upgrade processes.

# yum update

# yum upgrade

And you are now ready to install packages from the new repository.

  • Share/Bookmark