Today I Learned
Today I Learned
  • TIL
  • Ansible
    • Add Authorized SSH Key to User using Ansible
    • Add User to System using Ansible
    • Ansible Configure Default Inventory File
    • Ansible Disable Python Interpreter Warnings
    • Ansible Pause Playbook Execution
    • Ansible Test Connection
    • Run Ansible Playbook Locally
    • Setting a Password in Ansible Inventory File
  • Caddy
    • Caddy Write Logs to a File
    • Return Client IP Address As Plain Text
  • Cheatsheet(s)
    • Bash Cheatsheet
    • Dnf Cheatsheet
    • Grep Cheatsheet
    • Markdown Cheatsheet
    • MongoDB Cheatsheet
    • Networking Cheatsheet
    • Python Cheatsheet
    • ReactJS Cheatsheet
    • Regex Cheatsheet
  • Docker
    • Docker Build Multiple Tags At Once
    • Docker Exec (docker exec)
    • Docker Publish Port
    • Docker Run Without Cache
    • Docker Run (docker run)
    • Docker Fix UFW Security Flaw
    • Install Docker
    • Install Ping in Docker
    • Pass Build Time Arguments To Docker Build
    • Remove Container When It Exists
    • Remove Unused Data
    • Run Docker without Root
    • Setup Docker Buildx For Multi Arch builds
  • Git
    • Change Last Commit Message
    • Delete Tag
    • Get Tag Names in Git
    • Save Credentials for Remotes in Git
    • Show Commit Only From One Author
    • View Git Commit Changes
  • GitHub
    • GitHub Actions
      • Running Jobs in a Container
      • Setting An Environment Variable
  • Go
    • Convert String To Uppercase in Go
    • List All Possible GOOS And GOARCH In Go
    • Print Go Version
    • Resolve Hostname To IP Address
    • Trim Whitespaces From String
    • Update Project Libraries To Latest
  • Learning Resource(s)
    • Algorithms
    • DevOps
    • Git
    • Linux
    • Networking
    • Programming Languages
  • Linux
    • Add Swap Space To System
    • Add User To System
    • Beautify Logs
    • Benchmark System
    • Ccze Scrolling Output
    • Change Default Shell
    • Change Hostname Of A System
    • Changing User Password In Shell Script
    • Check Group Of A User
    • Check If A Package Is Installed Or Not
    • Check If A Port Is In Use
    • Check If A User Exists
    • Check Open Port
    • CMake Parallel Build with All Cores
    • Create Symbolic Links
    • Determine Which Process Is Using a File
    • Enable SSH Server
    • Fix Permission For Newly Created Partitions
    • Fix Windows And Linux Different Time Issue
    • Get Arch Of System
    • Increase Limit of Inotify Watchers
    • Install Latest NodeJS In Linux
    • Install Pavucontrol
    • Install Postman
    • Kill A Process In Linux
    • Mount Partition On System Startup
    • OpenVPN Server
    • Ping over TCP
    • Pipe Password to Sudo
    • Remove PPA From System
    • Remove User Password
    • Root Check
    • Run Go Binaries Without Installing Go
    • Set Different Time Zone
    • Show Disk Usage By Directories
    • Show Public IP
    • Show Size of Current Directory
    • System Upgrade
    • Tar Exclude Directories
    • Tar Retain File Permissions
    • Why All Users Can Write to /tmp
    • Alpine Linux
      • Adding User On Alpine
      • Changing Timezone On Alpine
      • Installing Ansible On Alpine
      • Install Dig On Alpine
      • Installing Pip On Alpine
      • Installing Python2 On Alpine
    • Apt
      • apt-fix-broken-packages
      • APT Hold Package(s) From Upgrades
    • Arch Linux
      • Install Docker Compose
      • Install Docker
      • Install Pip
    • BASH
      • Bash List Only Directories
      • BashTOP Resource Monitor
      • Case Statements
      • Concatenate Strings
      • Custom Shell Prompt
      • Length of String in Variable
      • Pass Arguments while Piping
      • Read Command Output In Reverse Order
      • "set -e" In Scripts
      • Set MacOS Like Terminal Font
      • Set Unlimited Bash History
      • shell-formatter
      • Test Regular Expression Against A String
      • Yes
    • Curl
      • Fix Failed Writing Body While Piping
      • Use Proxy Server in cURL
    • Fedora Linux
      • Install RPM Packages in Fedora
    • GPG
      • Fix "Inappropriate ioctl for device" Error
      • GPG Import Keys
      • GPG Test
      • GPG Trust Key
      • GPG Verify Signature
    • Grep
      • Grep Case Insensitive Search
      • Grep Count Matches
      • Grep Exact Match
      • Grep Invert Search
      • Grep On Continous Stream
      • Grep Quiet Mode
      • Grep Search For Multiple Strings
      • Remove Empty Lines
    • Journalctl
      • Get Errors in Running Services using Journalctl
    • Networking
      • Install Dig
      • Install MTR
      • Set Metric For A Network Using nmcli
      • WireGuard Server
    • Raspberry Pi
      • Disable Swap Memory on SD Card
    • SSH
      • Reconnect To a Disconnected SSH Session
      • Run A Local Script On Remote SSH Server
      • Screen
      • Tmux
    • Systemd
      • Create A Service
      • Create A Systemd Timer
      • List Systemd Services Of A User
      • Prevent Systemd Timers from Overlapping
      • Watch Systemd Service Status
    • Tcpdump
      • Capture ICMP Packets
      • Capture Traffic By An IP Address Or A Network
    • Ubuntu
      • Get Clipboard History
      • Install HMAC256 On Ubuntu
      • Obtaining a List of Ubuntu Repository Mirror Servers
    • Wget
      • Basic Auth
  • Miscellaneous
    • Good Reads
    • Must Read Sites
    • Useful Sites
  • Python
    • Add An Item To Dictionary
    • Check If A Key Exists In Dictionary
    • Check If a String is Empty
    • Check Image Size
    • Check Python Version Programmatically
    • Convert List To Tuple
    • Execute Python Code In Command Shell
    • Formatted Strings
    • Get IP Address From Hostname
    • Limit Floating Point To Two Decimal Places
    • Measure Latency Using TCP
    • pass-list-as-argument-to-a-function
    • Print Tabular Data
    • Python Padding Strings
    • Read A File Line By Line
    • Remove A File
    • Remove Trailing Spaces And New Lines From A String
    • Run Python Script in Background
    • Split String with Delimiter
    • Validate IP Address
    • Pipenv
      • Install Dependencies System Wide
      • Remove Virtualenv (Virtual Environment)
  • Rclone
    • Limit Upload Download Speeds in Rclone
  • ReactJS
    • ReactJS Resources
  • Vagrant
    • Increase RAM And CPU On Vagrant Machine
    • Vagrant Specify Disk Size
  • VS Code
    • Install VS Code on a Linux Server
  • WSL
    • Convert WSL1 to WSL2
    • Enable Systemd Support in WSL2 (Obsolete)
Powered by GitBook
On this page
  • Using rpm command
  • Using dnf command
  1. Linux
  2. Fedora Linux

Install RPM Packages in Fedora

In Fedora we can install the RPM package either by using rpm or dnf command, example is given below!

Using rpm command

Using rpm command we can install the RPM package such as -

[root@38841a887c28 ~]# rpm -i wget-1.21.4-1.fc39.x86_64.rpm
error: Failed dependencies:
	libgpgme.so.11()(64bit) is needed by wget-1.21.4-1.fc39.x86_64
	libgpgme.so.11(GPGME_1.0)(64bit) is needed by wget-1.21.4-1.fc39.x86_64
	libgpgme.so.11(GPGME_1.1)(64bit) is needed by wget-1.21.4-1.fc39.x86_64
	libmetalink.so.3()(64bit) is needed by wget-1.21.4-1.fc39.x86_64

In above example, the command errors out because the dependencies are not installed.

To make sure dependencies are installed, we can either use rpm -qpR to query the dependencies or use dnf command to install the RPM package with dependencies.

Using dnf command

To install using dnf command, we can use the syntax dnf localinstall followed by the RPM package file, dnf command will suggest dependencies as well.

[root@38841a887c28 ~]# dnf localinstall wget-1.21.4-1.fc39.x86_64.rpm
Last metadata expiration check: 1:01:10 ago on Thu Aug 29 03:16:17 2024.
Dependencies resolved.
==============================================================================================================================================================================================================================================
 Package                                                   Architecture                                         Version                                                      Repository                                                  Size
==============================================================================================================================================================================================================================================
Installing:
 wget                                                      x86_64                                               1.21.4-1.fc39                                                @commandline                                               797 k
Installing dependencies:
 gpgme                                                     x86_64                                               1.23.2-3.fc40                                                fedora                                                     211 k
 libmetalink                                               x86_64                                               0.1.3-34.fc40                                                fedora                                                      32 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  3 Packages

Total size: 1.0 M
Total download size: 243 k
Installed size: 4.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libmetalink-0.1.3-34.fc40.x86_64.rpm                                                                                                                                                                    19 kB/s |  32 kB     00:01
(2/2): gpgme-1.23.2-3.fc40.x86_64.rpm                                                                                                                                                                          87 kB/s | 211 kB     00:02
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                          72 kB/s | 243 kB     00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                      1/1
  Installing       : libmetalink-0.1.3-34.fc40.x86_64                                                                                                                                                                                     1/3
  Installing       : gpgme-1.23.2-3.fc40.x86_64                                                                                                                                                                                           2/3
  Installing       : wget-1.21.4-1.fc39.x86_64                                                                                                                                                                                            3/3
  Running scriptlet: wget-1.21.4-1.fc39.x86_64                                                                                                                                                                                            3/3

Installed:
  gpgme-1.23.2-3.fc40.x86_64                                                   libmetalink-0.1.3-34.fc40.x86_64                                                   wget-1.21.4-1.fc39.x86_64

Complete!
PreviousFedora LinuxNextGPG

Last updated 9 months ago

Source:

phoenix NAP