Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Commands»How To Install, Update & Remove a RPM in Linux

    How To Install, Update & Remove a RPM in Linux

    RahulBy RahulNovember 21, 20142 Mins ReadUpdated:June 5, 2022

    RPM (Redhat Package Manager) is a powerful package management utility built for the Redhat-based system. Which is responsible for the create distributable packages for your applications. It is also used for the installing, updating, and removal of packages from any Redhat-based systems.

    This tutorial will help you to understand about uses of the rpm command-line utility. After reading this you will understand the installation, updating, or removal of RPM packages from your system.

    Installing a RPM File

    The rpm packages can be installed using the “rpm” command-line utility on the Redhat-based systems. It is capable to install a package from the local y downloaded “.rpm” file or on a remote URL. For example, to install a package locally, use -i command line switch followed by the package name.

    rpm -i package-1.2.3.rpm 
    

    The above command does not search for the required dependencies of the packages. If the dependencies are not installed on your system, the above command will fail.

    If your system is connected to the Internet, Use YUM or DNF package manager to install the downloaded rpm file. This will help you to install the dependencies required for the package.

    yum localinstall package-1.2.3.rpm       ## Using yum command  
    dnf localinstall package-1.2.3.rpm       ## Using dnf package  
    

    Upgrade RPM Package

    Use the “-U” command-line switch to upgrade the current packages installed on your system. This will also install the package if the package is not already installed.

    rpm -U package-1.2.3.rpm 
    

    Remove a RPM Package

    The package that is no more required, should be removed from the system. Use -e with the rpm command followed by the package name to erase it from the system.

    sudo rpm -e package 
    
    Install rpm
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install .deb ile in Ubuntu & Debian
    Next Article How To Install MariaDB 10 on Ubuntu 18.04 And 16.04 LTS

    Related Posts

    How to Search Recently Modified Files in Linux

    2 Mins Read

    Bash Printf Command

    Updated:December 23, 20212 Mins Read

    Tee Command in Linux with Examples

    4 Mins Read

    How to Scan Open Ports with Nmap

    5 Mins Read

    Handling filenames with spaces in Linux

    3 Mins Read

    How To Compare Two Files in Linux

    Updated:August 23, 20215 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.