How To List All Repository Packages With Yum

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/list-repository-packages-yum/
PINTEREST
PINTEREST
INSTAGRAM

I have added new repository into my repositories and I want to list all packages. Find total count of packages and filter some of packages I am interested. And now we can start the process.

List All Repository Packages

yum command have list option which will list all packages from currently available repositories. This will check all currently enabled repositories.

We have listed all packages. As we see first installed packages are listed . Installed packaged are listed as installed if the packages are not installed their repository is written like @base . We can see that there is also package versions which will print current package version with the repository version like el7 .

Filter Packages

While listing packages we may need to specific packages. We will get the help of grep command while using yum list . We will grep packages which name have stack .

LEARN MORE  Linux Rename Files And Folders With Rename Command With Examples

  • We provide | grep stack to filter packages which provide stack word

Count Packages

We can count packages too. We can count total packages those starts with a like below. We will use wc command with the -l option.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/list-repository-packages-yum/
PINTEREST
PINTEREST
INSTAGRAM