Skip to main content
Share Your Experience: Take the 2024 Developer Survey
37 votes
Accepted

Systemd: Find dependants of service

$ systemctl list-dependencies systemd-sysusers.service --all --reverse systemd-sysusers.service ● └─sysinit.target ● ├─accounts-daemon.service ● │ └─graphical.target ● ├─acpid.path ● │ └─paths....
Gryu's user avatar
  • 847
33 votes
Accepted

Updating the Linux kernel, while leaving rest of system as is

Linus Torvalds has a very strong opinion against kernel changes resulting in userspace regressions (see the question "The Linux kernel: breaking user space" for details). Interface between userspace ...
sebasth's user avatar
  • 15k
32 votes

Automatically install unmet build dependencies as detected by dpkg-checkbuilddeps

I use mk-build-deps from the devscripts package for this (you’ll also need equivs). mk-build-deps will build a package depending on all the build-dependencies in the debian/control control file; that ...
Stephen Kitt's user avatar
32 votes

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution) libreoffice

In certain cases you might also want to force the overwrite sudo dpkg --configure --force-overwrite -a Alternatively: sudo apt -o Dpkg::Options::="--force-overwrite" --fix-broken install
sicvolo's user avatar
  • 461
30 votes
Accepted

How to convince dpkg that libssl1.0.2 is >= libssl1.0.0?

libssl1.0.2 and libssl1.0.0 are different packages, providing incompatible libraries; that’s why you can’t satisfy a libssl1.0.0 dependency using libssl1.0.2. To satisfy your package’s requirements, ...
Stephen Kitt's user avatar
28 votes
Accepted

How to remove all installed dependent packages while removing a package in CentOS 7?

Personally, I don't like yum plugins because they don't work a lot of the time, in my experience. You can use the yum history command to view your yum history. [root@testbox ~]# yum history Loaded ...
Jason Powell's user avatar
25 votes
Accepted

systemd Before and After declarations

You only need one of After= or Before= in your pair of units. You might prefer this from the man page for systemctl: --after ... any After= dependency is automatically mirrored to create a ...
meuh's user avatar
  • 51.7k
20 votes
Accepted

Debian 'bullseye' - no upgrade due to gnustep-base-runtime unmet dependencies

Since there’s just been a gnustep-base transition in testing from 1.26 to 1.27, involving an upgrade from libgnustep-base1.26 to libgnustep-base1.27, you need to allow package removals during upgrade: ...
Stephen Kitt's user avatar
19 votes
Accepted

Unmet dependencies while installing Git on Debian

You should edit your sources.list , by adding the following line: deb http://ftp.ca.debian.org/debian/ jessie main contrib Then upgrade your package and install git: apt-get update && apt-...
GAD3R's user avatar
  • 67.1k
19 votes
Accepted

How to get my systemd service restarted when its dependency is upgraded

I found the answer: I needed to change the last line of the service file to: WantedBy=postgresql.service This way, whenever Postgres is started, my service is started too - but if my service fails, ...
Rennex's user avatar
  • 471
18 votes
Accepted

How to make apt ignore unfulfilled dependencies of installed package?

You can’t make apt ignore dependencies, but you can create a fake gstreamer0.10-plugins-good package which will satisfy the missing dependency. The simplest way to do this is using equivs: install ...
Stephen Kitt's user avatar
16 votes
Accepted

"before" and "want" for the same systemd service?

The use case of this double relation is similar to a “provides” relation. systemd-timesyncd provides a time synchronisation service, so it satisfies any dependency a unit has on time-sync.target. It ...
Stephen Kitt's user avatar
15 votes
Accepted

Does dnf have an equivalent to apt's "build-dep"

There is, it's sudo dnf builddep httpd builddep is a dnf plugin, so it's not documented in the dnf manpage. It is described in the DNF plugin documentation, and it has its own manpage, dnf.plugin....
Stephen Kitt's user avatar
15 votes
Accepted

Why does LibreOffice (at least as packaged for Debian) depend on libldap?

libreoffice-core ships /usr/lib/libreoffice/program/soffice.bin, and that is linked against libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f55a8c9e000) The package ...
Stephen Kitt's user avatar
14 votes
Accepted

How to download a package and its dependencies with aptitude?

You can use apt-rdepends to build the complete set of dependencies (recursively), including the main package, then download that: apt-get download $(apt-rdepends "${package}" | grep -v ^\ ) (...
Stephen Kitt's user avatar
13 votes

How to make apt ignore unfulfilled dependencies of installed package?

You can also remove the gstreamer0.10-plugins-good dependency of the opera package by editing /var/lib/dpkg/status. Just open it with a text editor, search for the line Package: opera and under it in ...
tgauweiler's user avatar
12 votes

How to remove all installed dependent packages while removing a package in CentOS 7?

yum remove package_name will remove only that package and all their dependencies. yum autoremove will remove the unused dependencies To remove a package with it's dependencies , you need to install ...
GAD3R's user avatar
  • 67.1k
12 votes

Updating the Linux kernel, while leaving rest of system as is

The Linux kernel and the user space of a Linux distribution, which historically was dominated by user tools developed by the GNU project, are loosely coupled. In part this is by design, and in part it ...
Faheem Mitha's user avatar
  • 35.3k
11 votes

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution) libreoffice

sudo apt --fix-broken install Is not valid command for apt v.1.6.12. What should help is: sudo apt install --fix-broken or sudo apt reinstall
user1660210's user avatar
11 votes

What does a tilde (~) mean at the end of a dependency requirement in a deb file or in apt?

The documentation on the Version control field states (see the page for the full algorithm): First the initial part of each string consisting entirely of non-digit characters is determined. These two ...
Eduardo Trápani's user avatar
10 votes
Accepted

Forcefully install package with pacman

You can skip dependency checks with -d or --nodeps or manually exclude specific packages from dependency checks with --assume-installed see man page under transaction options.
imbuedHope's user avatar
10 votes

How do i list out all dependencies for a package in Centos/Rhel?

Add 1. The command # yum deplist [package-name] will list all dependencies. See https://linux.die.net/man/8/yum ... or use $ man yum , if available. Add 2. Say you are using the default install ...
Knud Larsen's user avatar
  • 2,124
10 votes
Accepted

Check if multiple dependencies exist before installing a package in Debian or Ubuntu

The ideal tool for this is rmadison, which is a simple Perl script with few dependencies (the URI module and wget or curl), so it can run pretty much everywhere. It interrogates the Madison services ...
Stephen Kitt's user avatar
10 votes

How to install clang-10 on Ubuntu 20.4

You are actually pretty close with the aptitude suggestion. If you look at what is installed, you see that the Ubuntu 18 versions of those packages are still present. When I did sudo aptitude install ...
Scott K.'s user avatar
  • 201
10 votes
Accepted

Why does libvirt-daemon-system have so many dependencies on Debian?

Yes, you can tell apt to ignore recommended packages: sudo apt install --no-install-recommends libvirt-daemon-system This will only pull in strict dependencies. You may want to pick and choose ...
Stephen Kitt's user avatar
9 votes
Accepted

How to change the paths to shared libraries (.so files) for a single terminal instance

You would be interested in removing library paths if a given shared library has embedded paths via the rpath feature. Those are added at the time the library is created by the linker. You can remove ...
Thomas Dickey's user avatar
9 votes

How do I roll-back to a previous Ubuntu kernel? (running Ubuntu 16.04)

Looking at for instance this answer, you can change the boot order of the two kernels from a terminal. The heavily upvoted comment in that answer also suggests using the full name of the kernel, ...
flaysomerages's user avatar
8 votes

Yum and recommended/suggested packages

I've found this in my command history dnf debuginfo-install -y \ --setopt=install_weak_deps=False \ cyrus-sasl-lib jsoncpp I apparently read about the feature at https://bgstack15.wordpress....
user7610's user avatar
  • 2,068
8 votes
Accepted

apt-get not properly resolving a dependency on a fixed version in a Debian/Ubuntu package

The apt resolver does not consider the possibility that you might want to install something that is not the most recent available version of a package in a given target release; Debian just doesn't ...
Wouter Verhelst's user avatar
8 votes

Updating the Linux kernel, while leaving rest of system as is

My understanding is that Linux is the kernel, and everything else is ancillary. You definitely can upgrade the kernel independently of (many) installed packages, as they are generally tied to ...
DopeGhoti's user avatar
  • 76.5k

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