How To Find The List Of Installed Repositories in Linux

Introduction

In this tutorial, we will show you how to list the installed repositories in Linux.

We can find the list of all enabled or even disabled repositories using the distribution’s default package manager or using a third-party tool inix.

List repositories installed on Linux

  • List installed repositories in Fedora, RHEL, AlmaLinux, Rocky Linux using the command below:
dnf repolist
  • Use yum to get the list of installed repositories for older RHEL versions
yum repolist
  • You can use the command below to list all repositories disabled or enabled ones.
yum repolist all
  • To list only enabled repositories.
dnf repolist enabled
  • Also to list only enabled repos for older versions of RHEL.
yum repolist enabled
  • To list only disabled repositories.
dnf repolist disabled
  • To list only disabled repos for older versions of RHEL.
yum repolist disabled
  •  List of installed packages in DEB based systems such as Debian, Ubuntu and Linux Mint.
sudo apt-cache policy
  • Or you can just use the command below
sudo grep -Erh ^deb /etc/apt/sources.list*
  • To view the list of repositories in SUSE and openSUSE.
zypper lr
OR
zypper repos
  • List installed repositories in Arch Linux, EndeavourOS and Manjaro Linux.
sudo pacman -Syy
  • List installed repositories in Linux using inxi tool, just install it on your system then run,
inxi -r

Output:

Conclusion

In this tutorial, we have illustrated some ways to list Linux repositories. In addition to how to list enabled and disabled repositories in Linux. Also how to list them using inix which is an external.

Thanks.

Qadry
unixcop Admin

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

You might also likeRELATED

How to set PassivePortRange and PassiveIP in pure-ftpd on Ubuntu to secure the app!

Introduction Hi guys, We will talk about setting PassivePortRange and PassiveIP in pure-ftpd. If you run a firewall on your Linux server and want to...

Install Java 8 on CentOS 8

Hi Guys, In this guide, we’ll show you how to install Oracle’s Java 8 programming language on CentOS 8 . It's an object-oriented language...

How to install flameshot on RHEL/CentOS using Snapcraft

In this post, you will learn how to install Flameshot on RHEL / CentOS Flameshot is a powerful open source screenshot and annotation tool for...