• Ubuntu
  • Python
  • Windows
  • VirtualBox
  • Git
  • Docker
  • Windows
Chat
Writy.
No Result
View All Result
My Account
Writy.
No Result
View All Result
sxi
No Result
View All Result

Home CentOS How to Install RPM

CentOS How to Install RPM

SXI ADMIN by SXI ADMIN
February 12, 2020
in CentOS
Reading Time: 4 mins read
A A
0
Share on FacebookShare on Twitter
Whenever you’re running a Linux distro, it’s always a challenge to find all your necessary tools directly in the default repository. Granted, all the repositories of any Linux distro comes with a pretty large collection of default software and tools. However, in some cases, you may need to get software outside the repository and install it.

In the case of CentOS and RHEL, it uses “yum” as its package manager. In case you need to grab a software package from a different source, you either need to follow the classical method (grabbing the source, building the software and installing it) or locate an installable package. For CentOS and RHEL, you should look for RPM packages.

There are also other Linux distros that use the RPM package format as the default installable package type, for example, Fedora and OpenSUSE. Keep in mind that you should look for RPM packages that are specifically built for CentOS/RHEL system. Otherwise, you may need to depend on the Fedora/OpenSUSE package. In that case, use them at your own risk (high chance of it not working properly, malfunctioning or not even installing properly).

It’s time to learn about managing an RPM package on CentOS/RHEL! My test system is CentOS 7.

Obtain an RPM

At first, find a suitable RPM package that you’ll be working with. Whatever RPM package you grab, make sure that you choose the correct one according to your system’s architecture.

I’m going with the Google Chrome RPM package.

wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

RPM usage

Before diving into the deep end, don’t forget to enable the EPEL repository on your CentOS system!

Run this command first –

sudo yum install epel-release

Then, update your system –

sudo yum update

Installing an RPM package

By default, the following command should do the job –

sudo yum install ./ google-chrome-stable_current_x86_64.rpm

Now, let’s slow down and have a look at the command.

  • yum: calling the “yum” tool for performing the installation of the RPM package.
  • install: Perform an installation job. In this case, it’s the parsed RPM package.
  • ./ : This is a very important part. Without this, “yum” won’t solve the dependency issues (missing/corrupted or unsatisfied dependencies).

You could also perform the action with “RPM” but working with “yum” is preferred, as it will solve all the dependency issues by default; no need to scratch your head and try to find out the required dependencies and packages etc.

Uninstalling the RPM package

If you’re no longer interested in the software you installed before, you can directly uninstall it by running the following command –

sudo yum remove <package_name>

  • Converting DEB to RPM

This is an interesting thing to perform but it’s possible! You can convert a DEB (default Debian/Ubuntu installation package) into an RPM package. Of course, things are pretty much bound to break down.

However, this method came in handy in the past, so feel free to keep this trick in mind!

At first, grab a test DEB package. I’ll be using the Google Chrome DEB package.

Install the converting tool – alien. It comes from the EPEL repository, so make sure that you configured EPEL on your system.

sudo yum install alien

Then, use the tool for performing the conversion!

sudo alien -r <deb_package_name>

Once the generation process is complete, you’ll end up with an installable RPM package on the directory.

Then, enjoy the RPM just like you would with a regular RPM!

sudo yum install ./<RPM_file>

Enjoy!

Total
0
Shares
Share 0
Tweet 0
Pin it 0
Share 0
SXI ADMIN

SXI ADMIN

Related Stories

systemd doesn’t want to reboot

systemd doesn’t want to reboot

by SXI ADMIN
October 1, 2021
0

Today, I had a new issue, a server blankly refused to reboot/shutdown. reboot -h now Failed to start reboot.target: Connection...

 How to upgrade MySQL 5.5 to 5.6/5.7 or MariaDB 5.5 to 10.x on Linux?

by SXI ADMIN
September 1, 2021
0

Download the attached script and provide it with executable rights: wget https://plesk.zendesk.com/hc/article_attachments/360022419980/mariadb-10.5-upgrade.sh && chmod +x mariadb-10.5-upgrade.sh Execute the script via...

Installing CentOS 8 using NetBoot ISO Image

Installing CentOS 8 using NetBoot ISO Image

by SXI ADMIN
February 13, 2020
0

CentOS 8 DVD ISO installation image is very large in size. If you have limited internet connection, or a low...

CentOS 8 Package Management with dnf Package Manager

CentOS 8 Package Management with dnf Package Manager

by SXI ADMIN
February 13, 2020
0

DNF is simply the next generation package manager (after YUM) for RPM based Linux distributions such as CentOS, RHEL, Fedora...

Configuring VNC Server on CentOS 8

Configuring VNC Server on CentOS 8

by SXI ADMIN
February 13, 2020
0

In this article, I am going to show you how to configure VNC server on CentOS 8 and use CentOS...

How to Install CentOS 8 Server

How to Install CentOS 8 Server

by SXI ADMIN
February 13, 2020
0

In this article, I am going to show you how to install CentOS 8 server on your computer. So, let’s...

Load More
Next Post
Debian Network Interface Setup

Debian Network Interface Setup

Popular Story

  • EMEDITOR PROFESSIONAL Full Key V11~V19

    646 shares
    Share 258 Tweet 162
  • Plesk Obsidian Lifetime license Key Version 18.0.15

    646 shares
    Share 258 Tweet 162
  • Plesk Onyx + Obsidian 18 Web Host Edition Nulled/Crack

    615 shares
    Share 246 Tweet 154
  • How To Start/Stop/Restart Cron Service In Linux Centos 7

    610 shares
    Share 244 Tweet 153
  • Download Windows Templates for Virtualizor KVM Windows server 2008,2012,2016,2019

    608 shares
    Share 243 Tweet 152
SXI.IO

© 2022 Vps giá rẻ

Navigate Site

  • Ubuntu
  • Python
  • Windows
  • VirtualBox
  • Git
  • Docker
  • Windows

Follow Us

No Result
View All Result
  • Ubuntu
  • Python
  • Windows
  • VirtualBox
  • Git
  • Docker
  • Windows

© 2022 Vps giá rẻ