108 votes

Local installation of .rpms using YUM

Too bad you accepted that rpm answer. That will lead to warnings from subsequent executions of yum, such as Warning: RPMDB altered outside of yum Instead you should use yum localinstall, per section ...
Jeff's user avatar
  • 1,282
106 votes
Accepted

Do I need to do something about "Delta RPMs disabled"?

You don't need to do something, but you can, especially if you have a slow internet connection. If you install deltarpm support: yum install deltarpm you will download only the differences with ...
Anthon's user avatar
  • 79.4k
58 votes
Accepted

How to use yum to get all RPMs required, for offline use?

Here's a specific example using "httpd" as the package to download and install. This process was tested on both CentOS6 and CentOS7. Install the stuff you need and make a place to put the downloaded ...
Steve Bonds's user avatar
  • 1,276
53 votes

How to use Bash for sh in Ubuntu

Up to Ubuntu 22.04 included (and Debian 11 included), you can switch sh to bash (instead of dash, the default) by reconfiguring dash (yes, it’s somewhat counter-intuitive): sudo dpkg-reconfigure dash ...
Stephen Kitt's user avatar
43 votes

Is it possible to build a Linux distro supporting both RPM and .deb packages?

I didn’t think there are any distributions out there which support both natively, but it turns out there is one in development, Bedrock Linux (thanks to iMalinowski for the information). On other ...
Stephen Kitt's user avatar
40 votes
Accepted

How to use Bash for sh in Ubuntu

There are multiple programs that implement the language of /bin/sh. On Ubuntu, /bin/sh is dash, which is designed to be fast, to use a small amount of memory, and doesn't support much more than the ...
Gilles 'SO- stop being evil''s user avatar
37 votes
Accepted

What is the purpose of /usr/lib/.build-id/ dir?

/usr/lib/.build-id contains the main build-id files for installed packages. Before Fedora 27, these lived alongside the debug files in /usr/lib/debug, and were only shipped in debug RPMs. In Fedora 27,...
Stephen Kitt's user avatar
37 votes

Why should you always use `rpm -U` and not `rpm -i` to install package?

Most documentation suggests -U over -i because -i may fail if the package was already installed, or already had an earlier version installed; while -U will succeed even if "upgrading" from the package ...
DopeGhoti's user avatar
  • 76.2k
30 votes

systemctl status shows vendor preset: disabled

If you see a Vendor preset: Disabled, it means when the service first installs it will be disabled on start up and will have to be manually started. If you want the service to start up automatically ...
thebtm's user avatar
  • 1,395
27 votes
Accepted

Is it possible to build a Linux distro supporting both RPM and .deb packages?

Bedrock Linux does this. Not saying I've done this, or that it is a good idea, but it is being done.
Henry Malinowski's user avatar
25 votes

How to fix GPG key retrieval failed: [Errno 14]?

If you trust the repo, you can simply edit the file /etc/yum.repos.d/mysql-community.repo and disable the gpgcheck [mysql57-community] name=MySQL 5.7 Community Server baseurl=http://repo.mysql.com/...
Adam Deng's user avatar
  • 351
25 votes
Accepted

What is DRPM and How does it differ from RPM?

A drpm stands for delta rpm, which is an addition to an existing rpm, and only contains the different files. Source: Delta RPM packages contain the difference between an old and a new version of ...
cutrightjm's user avatar
  • 5,300
25 votes
Accepted

What to do with a circular dependency between two packages in Fedora?

There is no problem if both rpm files depend on one another; just install the two together: rpm -ivh akmod-wl-6.30.223.271-13.fc26.x86_64.rpm broadcom-wl-6.30.223.271-2.fc26.noarch.rpm Logically; if ...
Chris Maes's user avatar
  • 3,392
24 votes
Accepted

What is less doing with rpm, and how do I get that text without rpm

If you browse through the less man page, you'll notice less has an INPUT PREPROCESSOR feature. echo $LESSOPEN to view the location of this preprocessor, and use less/vim/cat to view its contents. On ...
Dani_l's user avatar
  • 4,943
22 votes

How to download an RPM package and install it in one line?

Better to do yum install -y <URL> as this does alto take care of dependencies, as opposed to direct rpm tool use.
sorin's user avatar
  • 1,259
18 votes
Accepted

Can't install man pages on minimal Centos Docker container

Your image probably has the nodocs transaction flag set in the yum configuration (cf. /etc/yum.conf). You can remove it globally (or at the yum command line) before (re-)installing the packages you ...
maxschlepzig's user avatar
  • 57.6k
18 votes

RPM install file conflict from previous install

you cannot install twice the same rpm. Therefore if you want to install a newer version of the same rpm (mypackage in your case); you need to use the -U | --upgrade option. Typical usage of rpm goes ...
Chris Maes's user avatar
  • 3,392
17 votes
Accepted

How to reinstall all installed packages with zypper

You can reinstall all currently installed packages by this command: zypper in -f $(rpm -q -a --qf '%{NAME} ') Maybe this information will be useful.
almaceleste's user avatar
16 votes

How to temporarily disable and permanently disable repos in Debian based systems?

The easiest way I've found to manage repos is to have them in individual files in /etc/apt/sources.list.d/. That way, disabling the repo is as easy as moving the file from /etc/apt/sources.list.d/repo....
Chiraag's user avatar
  • 671
15 votes

How to fix GPG key retrieval failed: [Errno 14]?

You can also disable gpg check without editing repo file with this command : yum install --nogpgcheck your_package
Nanorex's user avatar
  • 153
14 votes

How to add a CentOS repo, having URL of Packages

Yum utils is a package which provides yum-config-manager. A quick and easy way to add a repo without the hassle writing a repo file and enabling is to use this as a sudo user yum-config-manager --...
garlicFrancium's user avatar
14 votes
Accepted

porting install scripts : can rpm replace apt?

rpm is mostly equivalent to dpkg, not apt; the apt equivalent is yum (on RHEL and CentOS up to release 7), or dnf (on Fedora, and RHEL and CentOS starting with release 8), or zypper (on SuSE). For ...
Stephen Kitt's user avatar
12 votes

rpmbuild: Is there a way to specify recommended packages

Yes, it is possible, but not on all distributions. Fedora>=24: Weak Dependencies are Suggests & Recommends and Supplements & Enhances SUSE>=10: Suggests and Recommends CentOS>=8. ...
sebix's user avatar
  • 459
12 votes

Install RPM file on Arch Linux?

I was genuinely surprised at the lack of examples! Arch bundles a few make/configure examples in /usr/share/pacman, but that's it. The templates link in HalosGhost's answer is now a redirect to a page ...
Kevin Tindall's user avatar
12 votes

How to use yum to get all RPMs required, for offline use?

I needed it several times, so I automated @Steve Bonds answer. Just be sure do define PKG as the package to install on both machines (Disclaimer: for CentOS 7. For CentOS 6, change the --releasever ...
shosaco's user avatar
  • 221
11 votes

rpmsign with CLI password prompt

Thanks to @Joe Damato for pointing me toward the gpg-preset-passphrase utility. The solution described below was developed and tested on a Fedora 25 host with gnupg2-2.1.x installed. (n.b. I haven't ...
Jim Fischer's user avatar
11 votes
Accepted

How to add Fedora Repo to a CentOS 7 installation?

It is never good idea to mix packages for different systems. It might work, but you might encounter hard-to-debug problems. But most probably it will not work. The best way is to rebuild the package ...
Jakuje's user avatar
  • 21.4k
11 votes

Is it possible to build a Linux distro supporting both RPM and .deb packages?

No, such a monster should not be built. Unlike, say, an MacOS application bundle, which typically includes everything the application needs to run on the operating system, RPM and .deb packages are ...
200_success's user avatar
  • 5,535
10 votes

Open a RPM on a Mac?

To unpack all the files to the local directory: tar -xvzf some.rpm without the need to install any new tools
Andrew Mackenzie's user avatar
10 votes
Accepted

Find files not installed by RPM package manager

a bit late to the party, but hopefully someone will find this useful: find /usr/ -exec /bin/sh -c 'rpm -qf -- "$1" >/dev/null 2>&1 || echo "$1"' find_sh {} \; This ...
akors's user avatar
  • 116

Only top scored, non community-wiki answers of a minimum length are eligible