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, ...
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-...
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.
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 ...
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, ...
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) ...
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 ...
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:
...
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 ...
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 ...
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 ...
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')"
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 ...
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 ...
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 (...
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 ...
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 ...
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
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
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
...
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-...
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 ...
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 ...
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
...
4
votes
yum simulate install
If you want to use it in script:
yes n | yum update
Respect for RHEL5 users. :)
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 ...
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 ...
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)
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
package-management × 413linux × 104
debian × 95
ubuntu × 77
apt × 67
yum × 66
centos × 51
rpm × 40
redhat × 27
repository × 21
packages × 21
installation × 17
dpkg × 16
update × 15
puppet × 14
aptitude × 12
security × 11
php × 10
solaris × 10
fedora × 8
dependencies × 8
deb × 8
apache-2.2 × 7
centos7 × 7
freebsd × 7