Linux Tutorial
To get the list of repo's in Fedora/Centos/RHEL8,
$sudo dnf repolist
Output:
Last metadata expiration check: 0:46:20 ago on Tue 25 Feb 2020 08:19:18 PM IST. repo id repo name status *fedora Fedora 29 - x86_64 58,200 *fedora-modular Fedora Modular 29 - x86_64 3 google-chrome google-chrome 3 *updates Fedora 29 - x86_64 - Updates 22,074 *updates-modular Fedora Modular 29 - x86_64 - Updates 28
How to get the list of packages installed and available in the particular repo?
Syntax:
$ sudo dnf repository-packages <repo_name> list
Sample repo 'google-chrome' output,
$ sudo dnf repository-packages google-chrome list
Output:
Last metadata expiration check: 0:46:31 ago on Tue 25 Feb 2020 08:19:18 PM IST. Installed Packages google-chrome-stable.x86_64 78.0.3904.70-1 @google-chrome Available Packages google-chrome-beta.x86_64 81.0.4044.26-1 google-chrome google-chrome-stable.x86_64 80.0.3987.122-1 google-chrome google-chrome-unstable.x86_64 82.0.4062.3-1 google-chrome
How to get the list of available packages only in the particular repo?
Syntax:
$ sudo dnf repository-packages <repo_name> list available
Sample repo 'google-chrome' output,
$sudo dnf repository-packages google-chrome list available
Output:
Last metadata expiration check: 0:47:18 ago on Tue 25 Feb 2020 08:19:18 PM IST. Available Packages google-chrome-beta.x86_64 81.0.4044.26-1 google-chrome google-chrome-stable.x86_64 80.0.3987.122-1 google-chrome google-chrome-unstable.x86_64 82.0.4062.3-1 google-chrome
How to get the list of installed packages only in the particular repo?
$ sudo dnf repository-packages <repo_name> list installed
Sample repo 'google-chrome' output,
$sudo dnf repository-packages google-chrome list installed
Output:
Installed Packages google-chrome-stable.x86_64 78.0.3904.70-1 @google-chrome
Linux Tutorial
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us | Report website issues in Github | Facebook page | Google+ page