Bootstrap FreeKB - Linux Commands - repoquery
Linux Commands - repoquery

Updated:   |  Linux Commands articles

The repoquery command without any options or flags is kind of like the dnf repolist or yum repolist command in that it will first list the repositories you have enabled and then list the available and installed packages in the repositories. The repoquery --all​ command should return the same output.

~]$ repoquery | head
Microsoft RHEL 8 Prod                           112 kB/s | 1.5 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - AppStre 209 kB/s | 4.5 kB     00:00    
Red Hat Satellite Client 6 for RHEL 8 x86_64 (R 141 kB/s | 3.8 kB     00:00    
CustomPackages8                                  54 kB/s | 1.5 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS  161 kB/s | 4.1 kB     00:00    
Neo4jv5                                         123 kB/s | 1.5 kB     00:00    
HashiCorp_RHEL8                                  83 kB/s | 1.3 kB     00:00    
ElasticSearch8                                  121 kB/s | 1.5 kB     00:00    
CUnit-0:2.1.3-17.el8.i686
CUnit-0:2.1.3-17.el8.x86_64
GConf2-0:3.2.6-22.el8.i686
GConf2-0:3.2.6-22.el8.x86_64
HdrHistogram-0:2.1.11-2.module+el8.2.1+6346+3bc8dea2.noarch
HdrHistogram-0:2.1.11-3.module+el8.4.0+10229+75da8244.noarch
HdrHistogram-0:2.1.11-3.module+el8.5.0+12798+cbad756b.noarch
HdrHistogram-javadoc-0:2.1.11-2.module+el8.2.1+6346+3bc8dea2.noarch
HdrHistogram-javadoc-0:2.1.11-3.module+el8.4.0+10229+75da8244.noarch

 

The repos should be listed in .repo files in the /etc/yum.repos.d directory.

~]# ll /etc/yum.repos.d
-rw-r--r--. 1 root root 7378 Mar 12 04:19 redhat.repo

 

And the .repo file should contain something like this.

~]# cat /etc/yum.repos.d/redhat.repo 
[rhel-server-rhscl-7-rpms]
metadata_expire = 1
enabled_metadata = 0
sslclientcert = /etc/pki/entitlement/3396879340931447197.pem
baseurl = https://satellite.example.com/pulp/content/rhel7/content/dist/rhel/server/7/8.9/$basearch/rhscl/1/os
ui_repoid_vars = basearch
sslverify = 1
name = Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
sslclientkey = /etc/pki/entitlement/3396879340931447197-key.pem
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled = 0
sslcacert = /etc/rhsm/ca/katello-server-ca.pem
gpgcheck = 1

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter fb476e in the box below so that we can be sure you are a human.