44 votes
Accepted

How do I see the changelog for a debian/ubuntu deb package?

Alternatively if the deb is also in the repository and you want to know older versions changelog, you can use apt-get changelog package to read all the changelog. For example for openssl: apt-get ...
PhoneixS's user avatar
  • 566
27 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
  • 75.2k
20 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
20 votes

debian packages version convention

XubuntuY part of the version e.g. 1ubuntu1 X is the Debian package version. Most Ubuntu packages are based on Debian packages, which is an "upstream" distro. If 0, this means that there is ...
Ciro Santilli OurBigBook.com's user avatar
15 votes

How to unify package installation tasks in ansible?

You can abstract out package managers via facts - name: Install packages with_items: package_list action: "{{ ansible_pkg_mgr }} state=installed name={{ item }}" All you need is some logic that ...
xddsg's user avatar
  • 3,362
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
  • 98.4k
13 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
  • 131
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,295
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
  • 45.2k
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,706
10 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,081
9 votes

Should I use the CentOS package version in the (official) repositories, or the latest stable versions of the packages?

Generally, I try very hard to use system default packages. However, this is sometime not possible. To do an educated choice you had to answer these questions: do the distribution's packages provide ...
shodanshok's user avatar
  • 46.4k
8 votes

Clear OS always showing "Operation too slow. Less than 1 bytes/sec"

From man yum.conf: minrate This sets the low speed threshold in bytes per second. If the server is sending data slower than this for at least timeout' seconds, Yum aborts the connection. The ...
Dmytro Ozarkiv's user avatar
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
  • 837
7 votes

How to unify package installation tasks in ansible?

From Ansible 2.0 there is the new Package-modul. http://docs.ansible.com/ansible/package_module.html You can then use it like your proposal: - name: install the latest version of Apache package: ...
Tvartom's user avatar
  • 233
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
  • 130k
6 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
  • 161
6 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
  • 161
6 votes

Should I use the CentOS package version in the (official) repositories, or the latest stable versions of the packages?

Matthew Ife's and shodanshok's answers cover the issues in general, but I want to address your specific concern by putting the issues in context, as it is exactly these sorts of systems that I manage. ...
Michael Hampton's user avatar
6 votes
Accepted

Should /usr/local/bin be owned by root?

From their FAQ, this is to avoid the dangerous practice of having to run arbitrary code off the internet as root when installing packages. It's a reasonable compromise for most users - Homebrew's ...
ceejayoz's user avatar
  • 32.8k
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
  • 484
6 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
5 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
5 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
5 votes

Should I use the CentOS package version in the (official) repositories, or the latest stable versions of the packages?

The short answer is, always use whats provided by the system repositories. Be very careful what repositories you do install too. Some are just plain bad. You shouldn't ovewrite the systems packages ...
Matthew Ife's user avatar
  • 23.3k
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
  • 2,869
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
  • 13k

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