Ask Your Question

Is there any add-apt-repository similar type command to add repository?

asked 2016-08-10 01:34:06 -0500

snoop gravatar image

updated 2016-08-10 02:05:36 -0500

Debian base operating systems have add-apt-repository command to add ppa repository. This is quite easy command. Is there any similar type of command in Fedora which can be used to add repository easily?

edit retag flag offensive close merge delete


Repositories can be an rpm file so you can run dnf install as any other package, no special tool is needed.

aeperezt gravatar imageaeperezt ( 2016-08-10 01:38:33 -0500 )edit

And suppose I have installed that RPM using dnf install, then latter if the update for that RPM come, then does fedora install it when I run dnf update command?

snoop gravatar imagesnoop ( 2016-08-10 01:53:17 -0500 )edit

Like any other rpm package if update of the package containing the repository information exists it will be updated when you do dnf update.

aeperezt gravatar imageaeperezt ( 2016-08-10 09:29:21 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted

answered 2016-08-10 09:27:53 -0500

florian gravatar image

updated 2016-08-10 10:38:32 -0500

dnf's plugin config-manager does that for you, e.g.:

dnf config-manager --add-repo=http://xxx.yyy/abc/name.repo

For more info: http://dnf-plugins-core.readthedocs.i...

For copr repos (equivalent to Ubuntu's ppa): see @vtrefny's answer

edit flag offensive delete link more

answered 2016-08-10 03:04:28 -0500

vtrefny gravatar image

You can enable Copr repositories using sudo dnf copr enable user/project

edit flag offensive delete link more

answered 2016-08-10 03:53:15 -0500

Shep gravatar image

yum-config-manager --add-repo

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-08-10 01:32:27 -0500

Seen: 10,870 times

Last updated: Aug 10 '16