windows
+
+
rollup
angular
+
unix
+
solidity
+
actix
git
0b
0b
sinatra
+
?
<-
+
+
helm
+
~
+
istio
&
+
xcode
http
+
soap
+
mysql
chef
+
+
+
hack
+
+
+
+
grpc
emacs
+
+
+
+
+
+
+
+
puppet
+
hack
git
redhat
vim
lisp
::
+
arch
ocaml
+
+
+
โŠ‚
^
sklearn
+
+
+
+
+
+
delphi
+
unix
//
+
+
ubuntu
+
+
fauna
+
bsd
$
+
+
Back to Blog
๐Ÿ“ฆ How to Install Software on AlmaLinux: DNF Package Manager Guide
almalinux dnf software-installation

๐Ÿ“ฆ How to Install Software on AlmaLinux: DNF Package Manager Guide

Published Sep 16, 2025

Master software installation on AlmaLinux! Complete guide to DNF package manager with examples for popular apps. Perfect for beginners learning Linux software management.

16 min read
0 views
Table of Contents

๐Ÿ“ฆ How to Install Software on AlmaLinux: DNF Package Manager Guide

Ready to supercharge your AlmaLinux with amazing software? ๐Ÿš€ Installing programs on Linux is actually easier than Windows once you know the secret! The DNF package manager gives you access to thousands of free, secure applications with just one command. This complete guide shows you everything from basic installations to advanced package management. Letโ€™s build your perfect Linux setup! โšก

๐Ÿค” Why DNF Package Manager is Amazing?

DNF makes software management incredibly powerful! ๐ŸŒŸ Hereโ€™s why Linux users love it:

  • ๐Ÿ†“ Everything Free: Thousands of applications at zero cost
  • ๐Ÿ›ก๏ธ Super Secure: All packages are signed and verified
  • โšก Lightning Fast: Install complex software in seconds
  • ๐Ÿ”„ Automatic Updates: Keep everything current effortlessly
  • ๐Ÿงฉ Smart Dependencies: Handles all requirements automatically
  • ๐Ÿ” Easy Search: Find any software you need instantly
  • ๐Ÿ—‘๏ธ Clean Removal: Uninstall completely with dependencies
  • ๐Ÿ“ฆ Multiple Sources: Access to EPEL, Fusion, and more repositories

Over 50,000 packages available for AlmaLinux! ๐Ÿ†

๐ŸŽฏ What You Need

Letโ€™s prepare for software installation mastery! โœ…

  • โœ… AlmaLinux system (desktop or server)
  • โœ… Internet connection for downloads
  • โœ… Sudo/root access for installations
  • โœ… Basic terminal knowledge helpful
  • โœ… 30 minutes to learn the basics
  • โœ… Curiosity about available software
  • โœ… Understanding that some installations need reboots
  • โœ… Excitement to discover amazing apps! ๐ŸŽ‰

Letโ€™s explore the world of Linux software! ๐ŸŒ

๐Ÿ“ Step 1: Understanding DNF Basics

First, letโ€™s master the fundamentals! ๐ŸŽฏ

What is DNF?

# DNF = Dandified YUM (Next generation YUM)
# Features:
- Modern package manager for RHEL-based systems
- Replaces YUM with better performance
- Automatic dependency resolution
- Transaction rollback capabilities
- Plugin system for extensibility
- Better memory usage than YUM

# Check DNF version
dnf --version

# Basic DNF help
dnf help
dnf help install  # Help for specific command

DNF Repository System:

# List configured repositories
dnf repolist

# List all repositories (enabled and disabled)
dnf repolist all

# Repository information
dnf repoinfo

# Example repositories in AlmaLinux:
baseos          # Core AlmaLinux packages
appstream       # Additional applications
extras          # Extra packages
powertools      # Developer tools (disabled by default)
epel            # Extra Packages for Enterprise Linux

Update Package Cache:

# Refresh repository metadata
dnf makecache

# Force refresh all metadata
dnf makecache --refresh

# Clean old cache
dnf clean all

# Clean specific cache types
dnf clean packages    # Remove downloaded packages
dnf clean metadata   # Remove repository metadata
dnf clean dbcache    # Remove database cache

Perfect! ๐ŸŽ‰ DNF basics understood!

๐Ÿ”ง Step 2: Installing Software

Master the art of software installation! ๐Ÿ“ฆ

Basic Installation Commands:

# Install single package
sudo dnf install firefox

# Install multiple packages at once
sudo dnf install vim git curl wget

# Install with automatic yes to prompts
sudo dnf install -y htop

# Install specific version
sudo dnf install firefox-115.0.2

# Install from specific repository
sudo dnf --enablerepo=epel install htop

Real Installation Examples:

# Essential development tools
sudo dnf install gcc gcc-c++ make cmake

# Popular text editors
sudo dnf install vim nano emacs

# Network tools
sudo dnf install nmap tcpdump wireshark

# System monitoring
sudo dnf install htop glances iotop

# Media tools
sudo dnf install vlc ffmpeg

# Archive tools
sudo dnf install unzip p7zip p7zip-plugins

Package Groups Installation:

# List available groups
dnf group list

# Show group information
dnf group info "Development Tools"

# Install entire group
sudo dnf group install "Development Tools"

# Popular groups:
sudo dnf group install "C Development Tools and Libraries"
sudo dnf group install "Security Tools"
sudo dnf group install "System Administration Tools"
sudo dnf group install "Multimedia"

Amazing! ๐ŸŒŸ You can install anything now!

๐ŸŒŸ Step 3: Searching and Finding Software

Discover the perfect software for your needs! ๐Ÿ”

Search Commands:

# Search by package name
dnf search firefox

# Search in descriptions too
dnf search all "text editor"

# Case-insensitive search
dnf search -i FIREFOX

# Search with wildcards
dnf search "python3-*"

# Search for files
dnf provides */bin/vim
dnf provides "*/firefox"

# Search installed packages only
dnf list installed | grep firefox

Package Information:

# Show package details
dnf info firefox

# Show package dependencies
dnf deplist firefox

# Show what packages require this one
dnf repoquery --whatrequires firefox

# Show package changelog
dnf changelog firefox

# Show package files
rpm -ql firefox  # After installation
dnf repoquery -l firefox  # Before installation

Finding Software Categories:

# Browse by categories
dnf group summary
dnf group list hidden

# Popular software categories:
# Browsers: firefox, chromium, lynx
# Editors: vim, nano, emacs, gedit
# Media: vlc, mpv, audacity, gimp
# Development: git, python3, nodejs, java
# Games: 0ad, supertux, frozen-bubble
# Office: libreoffice, abiword, gnumeric

Excellent! โšก Youโ€™re a software discovery expert!

โœ… Step 4: Managing Installed Software

Master package management and maintenance! ๐Ÿ”ง

List and Query Packages:

# List all installed packages
dnf list installed

# Count installed packages
dnf list installed | wc -l

# List packages from specific repo
dnf list installed | grep @epel

# Show recently installed
dnf history list

# Find largest packages
rpm -qa --queryformat '%{SIZE} %{NAME}\n' | sort -rn | head -10

Update and Upgrade:

# Check for updates
dnf check-update

# Update all packages
sudo dnf update

# Update specific package
sudo dnf update firefox

# Update only security patches
sudo dnf --security update

# Upgrade to newer version (if available)
sudo dnf upgrade

Remove Software:

# Remove package only
sudo dnf remove firefox

# Remove package and dependencies
sudo dnf autoremove firefox

# Remove orphaned dependencies
sudo dnf autoremove

# Remove group
sudo dnf group remove "Development Tools"

# Simulate removal (dry run)
dnf remove --assumeno firefox

Perfect! ๐Ÿ† Package management mastered!

๐Ÿ”ง Step 5: Adding Third-Party Repositories

Expand your software universe! ๐ŸŒŒ

Enable EPEL Repository:

# Install EPEL (Extra Packages for Enterprise Linux)
sudo dnf install epel-release

# Verify EPEL is enabled
dnf repolist | grep epel

# Install popular EPEL packages
sudo dnf install htop neofetch tree ranger

# Search EPEL packages
dnf --enablerepo=epel search multimedia

Enable PowerTools Repository:

# Enable PowerTools (development packages)
sudo dnf config-manager --set-enabled powertools

# Or for AlmaLinux 9:
sudo dnf config-manager --set-enabled crb

# Install development packages
sudo dnf install libtool-ltdl-devel

Add RPM Fusion Repository:

# Add RPM Fusion Free
sudo dnf install --nogpgcheck \
    https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm

# Add RPM Fusion Non-Free
sudo dnf install --nogpgcheck \
    https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm

# Install multimedia codecs
sudo dnf install gstreamer1-plugins-{bad-*,good-*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel

# Install VLC from RPM Fusion
sudo dnf install vlc

Custom Repository Example:

# Add Docker repository
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

# Add NodeJS repository
curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -

# List all repositories
dnf repolist all

Amazing! ๐ŸŒŸ Unlimited software access unlocked!

๐ŸŽฎ Quick Examples

Practice with popular software installations! ๐ŸŽฏ

Example 1: Complete Development Environment

# Install development tools group
sudo dnf group install "Development Tools"

# Install version control
sudo dnf install git git-lfs

# Install popular programming languages
sudo dnf install python3 python3-pip nodejs npm java-11-openjdk

# Install text editors and IDEs
sudo dnf install vim neovim code  # VS Code needs repository

# Install databases
sudo dnf install mariadb-server postgresql-server

# Install web development tools
sudo dnf install httpd nginx

# Verify installations
python3 --version
node --version
git --version
java -version

echo "๐ŸŽ‰ Development environment ready!"

Example 2: Multimedia Workstation Setup

# Enable RPM Fusion first (see Step 5)

# Install media players
sudo dnf install vlc mpv

# Install audio tools
sudo dnf install audacity lmms

# Install image editors
sudo dnf install gimp inkscape

# Install video editors
sudo dnf install kdenlive openshot

# Install streaming tools
sudo dnf install obs-studio

# Install multimedia codecs
sudo dnf install gstreamer1-plugins-ugly gstreamer1-plugins-bad-free gstreamer1-plugins-good

# Verify multimedia support
vlc --version
gimp --version

echo "๐ŸŽฌ Multimedia workstation ready!"

Example 3: Server Administration Tools

# Install system monitoring
sudo dnf install htop iotop nethogs glances

# Install network tools
sudo dnf install nmap tcpdump wireshark-cli

# Install security tools
sudo dnf install fail2ban clamav clamav-update

# Install backup tools
sudo dnf install rsync borgbackup

# Install web tools
sudo dnf install curl wget httpie

# Install file managers
sudo dnf install mc ranger

# Install text processing
sudo dnf install vim emacs nano

# Configuration management
sudo dnf install ansible

echo "๐Ÿ› ๏ธ Server admin toolkit ready!"

Example 4: Gaming and Entertainment

# Enable EPEL and RPM Fusion repositories first

# Install games from repositories
sudo dnf install 0ad supertux2 frozen-bubble

# Install Steam (from RPM Fusion)
sudo dnf install steam

# Install Discord (from external)
wget "https://discord.com/api/download?platform=linux&format=rpm" -O discord.rpm
sudo dnf install ./discord.rpm

# Install multimedia tools
sudo dnf install vlc mpv

# Install emulators
sudo dnf install dosbox

# Gaming utilities
sudo dnf install lutris  # Game manager

echo "๐ŸŽฎ Gaming setup complete!"

๐Ÿšจ Fix Common Problems

Software installation troubleshooting! ๐Ÿ”ง

Problem 1: Package Not Found

Solution:

# Search more thoroughly
dnf search all package-name

# Check if in different repository
dnf --enablerepo='*' search package-name

# Enable EPEL if needed
sudo dnf install epel-release

# Check package name variations
dnf search "*package*"

# Search by functionality
dnf provides */command-name

Problem 2: Dependency Conflicts

Solution:

# Get detailed error information
sudo dnf install package-name -v

# Try with skip-broken
sudo dnf install package-name --skip-broken

# Use distro-sync to resolve
sudo dnf distro-sync

# Remove conflicting package first
sudo dnf remove conflicting-package
sudo dnf install desired-package

# Reset transaction if needed
sudo dnf history undo last

Problem 3: Repository Errors

Solution:

# Clean repository cache
sudo dnf clean all

# Refresh metadata
sudo dnf makecache --refresh

# Check repository status
dnf repolist all

# Disable problematic repository temporarily
sudo dnf --disablerepo=problem-repo install package

# Fix repository configuration
sudo dnf config-manager --set-enabled repo-name

Problem 4: Download Failures

Solution:

# Try different mirror
sudo dnf --setopt=fastestmirror=true install package

# Use specific repo only
sudo dnf --enablerepo=baseos --disablerepo='*' install package

# Check network connectivity
ping download.example.com

# Check disk space
df -h

# Retry with timeout adjustment
sudo dnf install package --setopt=timeout=300

๐Ÿ“‹ Essential Commands Summary

TaskCommand
Install packagesudo dnf install package-name
Remove packagesudo dnf remove package-name
Search softwarednf search keyword
Update allsudo dnf update
List installeddnf list installed
Package infodnf info package-name
Install groupsudo dnf group install "Group Name"
Clean cachesudo dnf clean all
Show historydnf history list

๐Ÿ’ก Tips for Success

Master AlmaLinux software like a pro! ๐ŸŒŸ

  • ๐Ÿ” Search First: Always search before manual installation
  • ๐Ÿ“ฆ Use Groups: Install related software together
  • ๐Ÿ”„ Regular Updates: Keep software current for security
  • ๐Ÿงน Clean Regularly: Remove unused packages and cache
  • ๐Ÿ“š Read Descriptions: Understand what youโ€™re installing
  • ๐Ÿ›ก๏ธ Verify Sources: Stick to trusted repositories
  • ๐Ÿ’พ Backup First: Before major software changes
  • ๐Ÿ“ Document Installs: Keep track of custom software
  • ๐ŸŽฏ Start Small: Install essentials, then expand
  • ๐Ÿค Community Help: Ask forums for software recommendations

๐Ÿ† What You Learned

Congratulations! Youโ€™re now a software master! ๐ŸŽ‰

  • โœ… Mastered DNF package manager fundamentals
  • โœ… Installed software with multiple methods
  • โœ… Discovered and searched for packages
  • โœ… Managed installed software effectively
  • โœ… Added third-party repositories
  • โœ… Built complete software environments
  • โœ… Troubleshot installation problems
  • โœ… Gained essential Linux administration skills

๐ŸŽฏ Why This Matters

Your software installation skills unlock infinite possibilities! ๐Ÿš€

  • ๐Ÿ†“ Save Money: Access thousands of free applications
  • ๐Ÿ›ก๏ธ Stay Secure: Automated security updates
  • โšก Boost Productivity: Install exactly what you need
  • ๐Ÿ’ผ Professional Growth: Essential Linux skill for careers
  • ๐ŸŽจ Creative Freedom: Access professional creative tools
  • ๐Ÿ”ง Problem Solving: Install tools to fix any issue
  • ๐ŸŒ Global Community: Benefit from worldwide development
  • ๐ŸŽ“ Continuous Learning: Always discover new software

You now have the keys to the entire Linux software universe! ๐Ÿ†

Happy installing! ๐Ÿ™Œ