Ask Your Question
0

How do I limit dnf search to only installed or available packages?

asked 2016-10-02 23:50:01 -0500

lohroc gravatar image

updated 2016-10-03 09:30:12 -0500

If I use dnf search to look for a package it shows available and installed packages and I don't know which are installed. How can I use it to show only installed packages or only the available ones?

edit retag flag offensive close merge delete

Comments

Please set a more descriptive title for your question.

Aeyoun gravatar imageAeyoun ( 2016-10-03 05:01:47 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted
4

answered 2016-10-03 10:25:42 -0500

florian gravatar image

updated 2016-10-03 11:00:52 -0500

What you are looking for is the list command: dnf list. It offers you the options installed and available.

Example: dnf list installed | grep gstreamer or dnf list installed kernel

Just take a look into the DNF documentation and you find it there. Quoting from the same "A package is installed if it is present in the RPMDB, and it is available if it is not installed but it is present in a repository that DNF knows about."

To learn more about dnf, just read the man page: man dnf. Be aware that the link that @jake provided refers to the lastest DNF which is not yet part of Fedora. In DNF 2 it will be --installed, --available...

edit flag offensive delete link more
2

answered 2016-10-04 07:04:24 -0500

hhlp gravatar image

updated 2016-10-04 10:21:20 -0500

Yum Extender (yumex-dnf) is a graphical software manager to control the software packages on your system.

sudo dnf install yumex-dnf

image description

Regards.,

edit flag offensive delete link more
0

answered 2018-05-03 04:06:39 -0500

thanx

dnf list installed | grep PAKAGNAME

help me

edit flag offensive delete link more
-1

answered 2016-10-03 00:51:39 -0500

jake gravatar image

Hello,

dnf [options] search [--all] <keywords>...

Search package metadata for the keywords. Keywords are matched as case-insensitive substrings, globbing is supported. By default the command will only look at package names and summaries, failing that (or whenever all was given as an argument) it will match against package descriptions and URLs. The result is sorted from the most relevant results to the least.

dnf [options] info [<package-spec>...]

Is used to list description and summary information about installed and available packages.

Source: DNF Command Reference

greets

edit flag offensive delete link more

Comments

You didn't read my question.

lohroc gravatar imagelohroc ( 2016-10-03 09:27:50 -0500 )edit

Of course i read your question,... to read and understand the content doesn't seem to be a strength of yours. The command discription shows that it is not possible to filter the result of dnf search for installed or available packages only. Have a nice day!

jake gravatar imagejake ( 2016-10-03 09:36:04 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-10-02 23:50:01 -0500

Seen: 4,439 times

Last updated: Oct 04 '16