Ask Your Question
1

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

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

snoop gravatar image

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

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

Comments

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 -0600 )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 -0600 )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 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
5

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

florian gravatar image

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

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
4

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

vtrefny gravatar image

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

edit flag offensive delete link more
0

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

Shep gravatar image

yum-config-manager --add-repo

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 10,817 times

Last updated: Aug 10 '16