Skip to main content
28 votes
Accepted

Installed software from source, how to say yum not to install it from package?

"I've installed foobar version 2, compiled from sources" Take the extra effort when adding custom software to your system and package your additions in a RPM. See Martin Streicher, 2010-01-12, ...
HBruijn's user avatar
  • 81.7k
24 votes

Given a debian source package - How do I install the build-deps?

Here is an example workflow using ptman's suggestion. Assuming you have downloaded the .dsc file, the .orig.*z file, and maybe also a .debian.*z file, then unpack the source package with: dpkg-...
joeytwiddle's user avatar
15 votes

yum simulate install

You can do a dry run using yum -y update --setopt tsflags=test if you specify optional transaction flags (tsflags) on the yum command line with the added option --tsflags.
Duno's user avatar
  • 151
14 votes
Accepted

Good practice regarding multiple package management systems

I am not sure what is available for R (heard about REnv), but for Python I've decided on the pragmatic approach that every user is responsible for their own Python environment with pyenv (same is true ...
Sven's user avatar
  • 99.9k
12 votes
Accepted

Difference between rpm -ivh <package> and yum install <package>

For rpm you must specify where to get the file with the new version of the package. yum, which is a more intelligent management system, try to find a new version of the package in their repositories, ...
Slipeer's user avatar
  • 3,313
12 votes
Accepted

What does Alpine's APK stands for?

Android application package .apk file is a software archive containing the program's code, resources, assets, certificates, and manifest file. The archive format is based on the JAR (Java ARchive) ...
Esa Jokinen's user avatar
11 votes

Installed software from source, how to say yum not to install it from package?

Another option (albeit definitely not the best answer): make a dummy rpm file with the name in question. You will need rpmbuild installed, and a dummy tarball. mkdir ~/rpmbuild/{RPMS,SOURCES} touch ...
bgStack15's user avatar
  • 1,161
10 votes
Accepted

Show updated packages with Ansible package management

Starting with the comment by HBruijn I extended my playbook to show the result of the package management logs afterwards: --- - hosts: ubuntu tasks: - name: install all updates apt: ...
Gerald Schneider's user avatar
10 votes
Accepted

How to completely remove a package in Ubuntu (like it never existed)

You should purge those packages. apt-get purge somepackage from man apt-get (APT-GET(8)) purge purge is identical to remove except that packages are removed and purged (any configuration ...
Peter's user avatar
  • 2,906
8 votes

Where to get newer RHEL 7 kernel mentioned on bugzilla.redhat.com (for CentOS)

You won't see this particular kernel version outside of Red Hat. It was an internal kernel build and not distributed to the public. As you can see, this bug is not yet marked as fixed. It is clear ...
Michael Hampton's user avatar
7 votes

Vagrant box most similar to Amazon EC2 instances

On 13-Dec-2017, Amazon released Amazon Linux 2. With this Amazon now provides downloadable images that will run in VirtualBox, VMWare, MS Hyper-V. Prior to this, you did have the option to use the ...
Mike D's user avatar
  • 857
7 votes

Do .rpm files have metadata

I've forked @Ignacio answer and created oneliner to quickly go over all tags: rpm -qp package.rpm --qf "$(rpm --querytags | sed -nr 's/(.*)/\1:%{\1}/p' | tr '[:space:]' '\n')"
alkuzad's user avatar
  • 171
7 votes
Accepted

Debian: Get list of installed packages while in rescue mode

If the filesystem that you are recovering from is in a good state and wasn't malware infected or something, then just try doing a chroot /mnt /bin/bash, that should give you a shell that is in the ...
Zoredache's user avatar
  • 133k
7 votes

Installed software from source, how to say yum not to install it from package?

This is not how rpm works. rpm uses a db where it stores which rpms are installed on the system. If you install some files manually, rpm does not know about it. The best way to solve this is to ...
Chris Maes's user avatar
6 votes
Accepted

Incremental RPM package version "numbers" for x.y.z > x.y.z-beta (or alpha, rc, etc)

The official rpm guidelines tell how to do this, and links to an examples page. Here is an example of how you would work with the very common versioning scheme that uses three levels of pre-release (...
stochastic's user avatar
6 votes

How to know from which yum repository a package has been installed?

The simplest and most straightforward approach without installing any extra tools, greping or outputting extraneous information is simply: yum list installed [package name] The third column will ...
Scott Buchanan's user avatar
6 votes

Best practice for proxying package repositories

We use Squid for this; the nice thing about squid is that you can set individual expiry of objects based on a pattern match, fairly easily, which allows the metadata from the yum repo to be purged ...
Andrew's user avatar
  • 504
6 votes
Accepted

Oracle Linux 8.3 can't find libyaml-devel

You need to enable "PowerTools" repository equivalent. For Oracle Linux 8: sudo dnf config-manager --set-enabled ol8_codeready_builder
Danila Vershinin's user avatar
5 votes

Debian: How to use "apt-get install" without upgrading dependencies?

On Debian 8 I've found the option --no-upgrade can help achieving the desired result. For example: apt-get install --no-upgrade php7.0-xmlrpc
Andrii S.'s user avatar
  • 159
5 votes

Trying to install golang on a Solaris 11.3 VM

The current version of the developer/golang-15 package has a dependency on Perl 5.22: $ pkg contents -r -o fmri,type -t depend developer/golang-15 FMRI TYPE ...
Michael G's user avatar
5 votes

Best practice for proxying package repositories

That's a definitive use case for a proxy. A normal proxy, not a reverse-proxy (aka. load balancers). The most well-known and free and open-source is squid. Luckily it's one of the few good open-...
user5994461's user avatar
  • 3,068
5 votes

Difference between rpm -ivh <package> and yum install <package>

rpm - RPM Package Manager. yum - is an interactive, rpm based, package manager. there is no difference if you're installing single file as both yum which is wrapper for rpm and they both offers ...
alexus's user avatar
  • 13.6k
5 votes

Installing CentOS packages on fedora from repository

Don't count on it. While CentOS is a clone of RHEL, which is forked from Fedora every few years, Fedora moves relatively quickly and downstream packages should not be considered compatible with ...
Michael Hampton's user avatar
5 votes

What does Alpine's APK stands for?

It's a accidental coincidence. From Alpine's site and wiki: Alpine's packaging and development systems are something a hybrid between ArchLinux's, on the one hand, and Gentooand FreeBSD's, on the ...
Mikhail Khirgiy's user avatar
4 votes

yum simulate install

If you want to use it in script: yes n | yum update Respect for RHEL5 users. :)
Maciej Wawrzyńczuk's user avatar
4 votes

Best practice for proxying package repositories

This won't solve all your tasks, but maybe this is still helpful. Despite the name, apt-cacher-ng doesn't only work with Debian and derivatives, and is a caching proxy. Specialized for package ...
gxx's user avatar
  • 5,661
4 votes
Accepted

How to know from which yum repository *URL* a package has been installed?

The repo URLs are in the yum configuration files in the /etc/yum.repos.d directory. Keep in mind that most CentOS repos use mirrorlists, which contain the URLs of every possible CentOS mirror, and ...
Michael Hampton's user avatar
4 votes

Installed software from source, how to say yum not to install it from package?

May rpm --nodeps be the answer you're looking for? It was discussed in an older thread here on Serverfault. (tell yum to ignore a single dependency)
Mikael H's user avatar
  • 5,149
4 votes
Accepted

How to fix broken packages on Ubuntu

What happened here is that the post-install script of the libpaper1 package was broken, and exited with an error during the install process. This should not happen, because it breaks the package state ...
Lacek's user avatar
  • 7,533
4 votes

Can you upgrade package while it is still running?

In the Unix world, file systems separate file names and file contents, and deleting a file name is always allowed provided you have the appropriate permissions. The file contents are removed when no ...
Simon Richter's user avatar

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