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 ...
- 14k
31
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, ...
- 393k
27
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 ...
- 361
27
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 ...
- 393k
26
votes
How to find the packages that depend on a certain package in apt?
Another solution would be to run apt-cache rdepends libplrpc-perl.
- 963
23
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
- 361
22
votes
Accepted
Installing PHP7.0 from sid on jessie
You have unofficial repos with new versions. Using Debian one of the best well-known repository for most up-to-date software for web servers for i386 and amd64 packages is dotdeb.
"Dotdeb is an ...
- 55.1k
20
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 ...
- 47.9k
19
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....
- 669
18
votes
Accepted
How to remove a package on a debian-based system WITHOUT removing dependencies?
If I understand you correctly, you want to remove a package that other packages depend on, without removing those other packages as well. Bearing in mind this might not be a good idea, you can do this ...
- 34.2k
18
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-...
- 61.5k
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 ...
- 393k
17
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, ...
- 441
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 ...
- 393k
16
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: ...
- 393k
15
votes
Could Apt delete packages that are need by software that users have installed from source?
apt and dpkg absolutely can remove software that is required by locally installed other software that is outside the scope of the package management system. There is simply no way for apt and dpkg to ...
- 42.5k
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 ...
- 393k
13
votes
Accepted
Could Apt delete packages that are need by software that users have installed from source?
APT doesn't know anything about software that was installed manually. It doesn't know what libraries that software needs or anything.
When APT installs a package only to fulfill the dependencies of ...
13
votes
Accepted
How to get ALL kinds of reverse package dependencies: reverse-depends pendant for non-Ubuntu distributions
In Debian and derivatives there are six types of dependencies:
pre-depends
depends
recommends
suggests
build-depends
build-depends-indep
Each of these give corresponding reverse dependencies. To ...
- 393k
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 ...
- 61.5k
12
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 ^\ )
(...
- 393k
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 ...
- 34.2k
11
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....
- 393k
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
- 211
10
votes
Accepted
pacman doesn't download dependencies with -S and -w?
As pointed out by Earnestly and demonicmaniac3 over at #archlinux irc channel, this is because pacman won't re-download anything if it's already locally installed. But it will download whatever it is ...
- 3,519
10
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 ...
- 101
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 ...
- 393k
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 ...
- 201
10
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 ...
- 11.2k
8
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 ...
- 73.8k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
dependencies × 594apt × 163
debian × 148
package-management × 108
software-installation × 68
rpm × 64
yum × 60
dpkg × 43
linux × 42
ubuntu × 41
centos × 40
libraries × 29
fedora × 27
compiling × 27
upgrade × 23
rhel × 22
python × 20
linux-mint × 18
systemd × 17
arch-linux × 15
dnf × 15
kali-linux × 13
shared-library × 13
aptitude × 13
packaging × 12