contador web Saltar al contenido

Basic commands for those coming to Fedora

This article is also for anyone coming from the Debian / Ubuntu database and looking for apt-equivalent commands. Remembering to always check if you are in root mode in specific cases.

Let's start with the basics, which update the system packages. In Debian / Ubuntu you use the sudo apt-get update or sudo apt update, already in Fedora we use the:

When we need to update the installed packages we use the sudo apt-get upgrade / sudo apt upgrade or to add / remove packages that have new dependencies, we use the sudo apt-get dist-upgrade / sudo apt full-upgrade. Already in Fedora we use the:

When we need to search for a program via terminal, in Debian / Ubuntu we use the apt-cache search package_name or apt search package_name. J in Fedora used:

dnf search filename or dnf search all filename (the latter includes the package description search)

After finding the desired package, if you want to see the About or About package. When using Debian / Ubuntu, the command apt-cache show package (showing its local cache) or the apt show package. In Fedora you can use two commands, which are:

dnf info package or dnf repoquery –requires package (listing dependencies for that package)

That done, it's time to install the package (s), and it's a pretty easy task. On the Debian / Ubuntu base, you usually use sudo apt-get install package or sudo apt-get install pack 1 pack 2 or sudo apt-get install -y package or yet sudo apt install package. In Fedora follows almost the same line, which would be:

sudo dnf install package


sudo dnf install package1 package2


sudo dnf install -y package

Very simple no

Now if you need to install a package inside a folder for example in Debian / Ubuntu you use the command sudo dpkg -i package.deb (format widely used by Debian, Ubuntu and their daughters distros). In Fedora is not much different, and the command:

sudo dnf install package.rpm (rpm the packaging type used in Fedora)

Very simple removal too, in Debian / Ubuntu we use sudo apt-get remove package or sudo apt remove package. Already in Fedora, we just changed the word, but the idea is the same:

sudo dnf erase package or sudo dnf remove package

Last but not least, to add the RPM Fusion repository with both free and nonfree versions, simply use the following command:

sudo dnf install$(rpm -E% fedora) .noarch.rpm release – $ (rpm -E% fedora) .noarch.rpm

If you need more parameters and help, you can access it directly from the terminal by typing man dnf or by accessing the Fedora and Red Hat help links, which are in English, but nothing that Google Translate doesn't help.

I hope this basic guide has helped you.

Check out Fedora 30 Review Video