dnf-pri is a lightweight command-line tool designed to manage and display the priorities of installed DNF/DNF5 repositories. It provides a clean, sorted table view of repositories and an easy way to set priority values.
- List Repositories: Display all enabled repositories with their ID, name, and current priority.
- Adaptive Progress Bar: Shows real-time progress while fetching metadata.
- Flexible Sorting: Sort the output table by Repository ID, Name, or Priority.
- Priority Management: Set or update repository priorities directly (requires root privileges).
- DNF: The package manager.
- dnf-plugins-core: Provides the
config-managercommand used by this tool. - Bash: The script is written in Shell.
By default, the tool lists repositories sorted by ID:
dnf-priTo sort by a specific field:
dnf-pri --sort id
dnf-pri --sort name
dnf-pri --sort priThe set command is a smart wrapper for dnf config-manager.
sudo dnf-pri set <repo-id> <priority>
# Example:
sudo dnf-pri set fedora 10sudo dnf-pri set epel --enable
sudo dnf-pri set epel --disable# Here are some examples
sudo dnf-pri set epel --includepkgs "librime*"
sudo dnf-pri set epel --excludepkgs "librime*"This package is also avaliable in Copr. To enable the repository and install this package, run following command on RHEL / RockyLinux / AlmaLinux / CentOS Stream / Fedora:
sudo dnf copr enable alrcatraz/alrcatraz-utils
sudo dnf install dnf-priThis project is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later). See the LICENSE file for details.