How to fix 'apt: command not found' on Fedora

If you want to install a package on a Fedora Linux, you might have tried a command like

fix_apt_command_on_fedora.sh
sudo apt install [package name]

However, the Fedora distribution does not use the apt package manager. Fedora uses yum instead.

Use

example.sh
sudo yum install [package name]

to install a package, for example

example.sh
sudo yum install sqlite

Note:yum update does not do the same as apt update (i.e. update the list of available packages) but is the equivalent to apt upgrade or apt dist-upgrade i.e. update packages on the system!


Check out similar posts by category: Linux