Tuesday, 26 July 2016

Importing a yum repository key win CentOS 6/7

More often than not (especially on CentOS) it is necessary to rely upon third-party software repositories.

The example below explains how to add an additional repository including importing it's key file.

cd /tmp

wget http://rpm.playonlinux.com/public.gpg

sudo rpm -import ./public.gpg

curl http://rpm.playonlinux.com/playonlinux.repo > /etc/yum.repos.d/playonlinux.repo

Unlike apt - yum will automatically update the repo list / packages - so you can simply install the desired software as usual:

sudo yum install playonlinux

0 comments:

Post a comment