When I build an rpm
package with the same name as a package that already exists in a repo and type the command
$ dnf info package
This command only shows information about the built package. I would like to be able to run above command and dnf builddep package
, and be able to choose which package I get information from.
Is there a way to differentiate between repo and self built packages without giving them different names?
Addendum: Built packages have newer versions
Best Answer
Look at the lines
Repo
andFrom repo
in thednf info
output. These will tell you:Repo
tells you the repository that an available package is in. If the package is installed then it will tell you@System
.From repo
appears only for installed packages. It gives the repository from which an installed package originated. It shows a repo name (e.g.fedora
orupdates
) or@commandline
for a manually installed RPM.dnf builddep
will install build dependencies for the latest version of the named package in the repositories. It doesn't do anything with manually installed RPMs.