How do I install software on Fedora?

One of the strengths of the Fedora Linux distribution lies in its robust package management system, which simplifies the process of installing and manageing software. Whether you’re a developer seeking development tools or a user looking for specific applications, Fedora provides a straightforward way to install and update software packages. In this comprehensive guide, we will explore the various methods to install software on Fedora, catering to users with diverse needs and preferences.

Understanding Package Management in Fedora

Fedora uses the DNF (Dandified Yum) package manager for handling software packages. DNF is a powerful and flexible tool that simplifies the installation, removal, and updating of software. Additionally, Fedora adopts the RPM (Red Hat Package Manager) format for packageing software, providing a standardised way to distribute and manage software packages.

Installing Software Using DNF

1. Update Package Repository Information:

Before installing new software, it’s advisable to update the package repository information to ensure you have the latest package details. Open a terminal and run:

sudo dnf update

2. Search for Software:

To search for software packages, use the following command:

sudo dnf search <package_name>

Replace <package_name> with the name or keyword related to the software you’re looking for.

3. Install Software:

To install a specific software package, use the following command:

sudo dnf install <package_name>

This command installs the specified software along with its dependencies.

4. Remove Software:

To remove a software package, use the following command:

sudo dnf remove <package_name>

This command removes the specified software while ensuring that dependencies no longer needed are also removed.

5. Check Installed Packages:

To view a list of installed packages, use the following command:

sudo dnf list installed

This command provides a comprehensive list of all installed packages on your system.

Graphical Software Management Tools

Fedora also provides graphical tools that offer a user-friendly interface for manageing software. These tools include:

1. GNOME Software:

GNOME Software is the default software management application for Fedora’s GNOME desktop environment. It provides a visually intuitive way to discover, install, and remove software. Users can explore categories, search for specific applications, and manage updates seamlessly.

2. Discover Software Centre:

For KDE desktop environments, Fedora includes the Discover Software Centre. Similar to GNOME Software, Discover offers a graphical interface for manageing software, making it easy for users to browse, install, and update applications.

Installing Software from Third-Party Repositories

While Fedora’s default repositories offer a vast selection of software, users may occasionally need applications not available in the official repositories. In such cases, third-party repositories can be added to expand the software availability.

1. Enable RPM Fusion:

RPM Fusion is a popular third-party repository that provides additional software not included in Fedora’s official repositories. To enable RPM Fusion, use the following commands:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

2. Install Software from RPM Fusion:

Once RPM Fusion is enabled, you can install software from its repositories using the standard DNF commands. For example:

sudo dnf install vlc

This command installs the VLC media player from RPM Fusion.

Flatpak: Universal Packages for Fedora

Flatpak is a universal packageing system that allows developers to distribute applications that run on various Linux distributions, including Fedora. Flatpak packages are isolated from the underlying system, providing a consistent environment for applications.

1. Install Flatpak:

To install Flatpak on Fedora, run the following commands:

sudo dnf install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

2. Install Software with Flatpak:

Once Flatpak is installed, you can use it to install software from the Flathub repository. For example:

flatpak install flathub org.gimp.GIMP

This command installs the GIMP image editor as a Flatpak.

Managing Software Updates

Keeping software up to date is crucial for security and performance. Fedora provides straightforward methods for manageing software updates.

1. Update System:

To update your system, including installed software packages, run:

sudo dnf upgrade

2. Automatic Updates:

Fedora includes the DNF-automatic package, which allows you to set up automatic updates. To install and enable it, use:

sudo dnf install dnf-automatic
sudo systemctl enable --now dnf-automatic.timer

This configuration enables automatic updates at scheduled intervals.

Conclusion

Installing software on Fedora is a user-friendly and flexible process, thanks to the robust package management system and graphical tools provided by the Fedora Project. Whether you prefer the command line for its efficiency or a graphical interface for its simplicity, Fedora accommodates diverse user preferences. By exploring the methods outlined in this guide, users can effortlessly install, manage, and update software on their Fedora systems, creating a personalised and powerful computing environment.

Scroll to Top