i tried to query the package names from options using yum -q “package name” which returned every package in the options were not installed.
but when i tried with yum list “package-name” , i was able to find out the correct installed packages. Could you please tell me the difference in both these commands
yum -q “package name”
yum list “package-name”
Hi @satya.ravi91
Not sure what you’re asking here.
-q
means “quiet”, to display less output. From the documentation
shows just the relevant content. Suppresses messages notifying about the current state or actions of DNF.
yum list
means to list all the packages that can be downloaded from remote repositories.
yum list --installed
will list all packages present and installed locally.
If you put a package name after yum list
it should show only that package - if it is found, e.g.
bob@centos-host ~ ➜ yum list --installed zip
Installed Packages
zip.x86_64 3.0-23.el8 @baseos
bob@centos-host ~ ✖ yum list zsh
Last metadata expiration check: 0:06:40 ago on Sun Oct 23 13:35:50 2022.
Available Packages
zsh.x86_64 5.5.1-10.el8 baseos