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 ...
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, ...
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-...
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 ...
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 ...
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 ...
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.
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) ...
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 ...
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 ...
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 ...
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 ...
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
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: ...
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 ...
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')"
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
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.
...
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 ...
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
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 ...
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 ...
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 (...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
package-management × 404linux × 102
debian × 93
ubuntu × 73
apt × 66
yum × 65
centos × 51
rpm × 40
redhat × 27
packages × 21
installation × 17
repository × 17
dpkg × 16
update × 15
puppet × 14
aptitude × 12
solaris × 10
php × 9
security × 9
fedora × 8
dependencies × 8
deb × 8
freebsd × 7
apache-2.2 × 6
mysql × 6