Package Management (dnf)

Oreon uses dnf (Dandified YUM) as its primary package manager. It allows you to install, update, and remove software packages.

Searching for Packages

To search the available repositories for a package based on its name or description:

sudo dnf search <search-term>

For example, to search for packages related to the 'nano' text editor:

sudo dnf search nano

Installing Packages

To install a package and its required dependencies:

sudo dnf install <package-name>

You can install multiple packages at once:

sudo dnf install <package1> <package2>

For example, to install the 'htop' process viewer:

sudo dnf install htop

Updating Packages

To check for available updates for installed packages:

sudo dnf update

To update a single package:

sudo dnf update <package-name>

Removing Packages

To remove (uninstall) a package and packages that depend on it:

sudo dnf remove <package-name>

For example, to remove 'htop':

sudo dnf remove htop

To remove packages that were installed as dependencies but are no longer required:

sudo dnf autoremove

Viewing Package Information

To display detailed information about a package (installed or available):

sudo dnf info <package-name>

Listing Packages

To list all installed packages:

sudo dnf list installed

To list all available packages from enabled repositories:

sudo dnf list available

To list packages matching a pattern (e.g., all kernel packages):

sudo dnf list kernel\*

Repositories

DNF downloads packages from configured repositories. To list enabled repositories:

sudo dnf repolist

Repository configuration files are typically located in /etc/yum.repos.d/. Oreon Linux includes its own set of repositories providing the core OS and updates, as well as compatibility with standard Enterprise Linux repositories.

Finding Which Package Provides a File

If you know the name of a file (like a command) but not the package it belongs to:

sudo dnf provides <file-path-or-pattern>

For example:

sudo dnf provides /usr/bin/htop
sudo dnf provides '*bin/nano'

This covers the basic usage of the DNF package manager on Oreon Linux. For more advanced options and features, refer to the DNF man page (man dnf).