Ask Your Question
1

How to search if a package is available or not in a particular repository using dnf ?

asked 2017-03-21 21:22:06 -0500

Hemanth Kumar gravatar image

updated 2017-03-21 23:00:30 -0500

For example this command works- # sudo dnf --enablerepo=updates-testing --refresh --best install geany-1.30.1-1.fc25 It shows me the list of packages to be installed with dependencies resolved. But when i try -# sudo dnf --enablerepo=updates-testing search geany-1.30.1-1.fc25 This is what i get: Last metadata expiration check: 0:01:04 ago on Tue Mar 21 09:48:13 2017. Error: No matches found. Even when i try this command-# sudo dnf --enablerepo=updates-testing info geany it gives me the package information. So why doesn't the search option works if its available for download ? how do i search then for a particular package in a particular repository.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2017-03-22 00:15:19 -0500

fcomida gravatar image

dnf install and dnf info care about package version, architecture, os version, dnf search instead is about telling you whether a package with that given name is in the repos or not (the searching term is part of a package name or package description with dnf search all). If you already know everything about a package why bother searching for it?

edit flag offensive delete link more
1

answered 2017-03-21 23:30:34 -0500

florian gravatar image

updated 2017-03-21 23:31:17 -0500

How about leaving out the version and release number when you search? Just search for the package name...

dnf --enablerepo=updates-testing search geany

FYI: https://apps.fedoraproject.org/packag...

edit flag offensive delete link more
0

answered 2017-03-22 15:22:20 -0500

puedes utilizar dnf search package o utilizar rpm -qa | grep package para buscar el paquete

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-03-21 21:22:06 -0500

Seen: 209 times

Last updated: Mar 22 '17