Hot answers tagged

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 ...
7 votes
Accepted

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

Tildes in versions are described in the section of Policy on versions. Basically, tildes sort before anything. Thus >= 3.8.2-1~ is satisfied by any version starting with 3.8.2-1, including versions ...
4 votes
Accepted

Which tool to build a RPM inside a chroot?

Yes, you’re looking for mock, which takes care of setting up build chroots, installing build dependencies and building RPMs for different environments.
4 votes
Accepted

Decode package and directory structure to URL from `/etc/apt/sources.list.d/` repo file

The structure of the entry is: deb [arch=architecture] base-URL version repo-sections... When you have a sources.list.d entry: deb [arch=amd64] http://apt.domain.de/ stable ubuntu that indicates: ...
  • 74.4k
3 votes
Accepted

How are binary packages isolated from host system?

I may be mistaken but I think the answer (often) is that they are not isolated from the host system. How are binary packages (rpm, deb, etc) created for binutils, gcc and other packages that link to ...
3 votes
Accepted

Is there any way to add all apt repository of Debian based Linux distros on your Debian system?

You shouldn’t try to do this. The fact that other distributions are based on Debian doesn’t mean they’re compatible with Debian. If you add Ubuntu or Kali repositories to a Debian system, you’ll end ...
3 votes
Accepted

Does reinstalling package also reinstall dependencies?

if I reinstall package B, what would happen to A? Nothing. Will it be forever removed? Will it be removed, and then reinstalled? Will it simply be ignored by the package manager? No, No, and also ...
3 votes
Accepted

"apt install <name>.deb" not correctly installing Nvidia driver in the deb package

It’s not installing the package because the package is already installed: nvidia-driver-local-repo-debian10-460.91.03 is already the newest version (1.0-1). This package ships all the packages ...
2 votes

Does reinstalling package also reinstall dependencies?

Dependencies are generally not touched unless necessary (for example you upgrade a package and the new version requires a newer version of the dependency). PS: I think dnf is preferred to yum these ...
  • 151
2 votes
Accepted

Restrict which packages are installable from a repository

apt pinning can be made to work here. Add an entry such as Package: * Pin: origin repo2 Pin-Priority: 100 This will allow installation from repo2, but will ensure that packages present in both repo1 ...
2 votes

how to get the deb package full path in the pre-install script

Maintainer scripts (preinst, postinst etc.) are given a number of pieces of information, but that doesn’t include the full path of the package file they were installed from — in particular, because ...
2 votes

Is a reboot required when installing a .deb package off-repo in Parrot OS?

This should not be necessary. Nothing in the MATE desktop that ParrotOS ships requires a reboot. So possibly, the packaging from the external source just isn't up to Debian/ParrotOS standards (which ...
2 votes

How to limit sudo for user only for rpm/deb

Is there anyway to limit sudo for user, in order to only for invocation of rpm/deb to install packages? Yes; man sudoers explains in detail and with examples how to do that. But it would be senseless ...
2 votes
Accepted

Installing a deb file build with checkinstall on Ubuntu into a docker container based on Debian

dpkg in Debian doesn’t support zstd compression. To be able to even extract your package in Debian, you need to convert it: extract its components: ar -x mypackage-8.0.0_20221030-1_amd64.deb ...
2 votes

How are binary packages isolated from host system?

In the rpm-based world, we use Mock build tool. Mock creates an isolated environment using systemd-nspawn containers. It install only a minimal set of dependencies and the build is done in the ...
  • 1,371
1 vote
Accepted

How to limit sudo for user only for rpm/deb

To give bill the ability to run apt-get, simply add this to /etc/sudoers: bill ALL = /usr/bin/apt-get To give john or bob the ability to run any of several commands, we could create some ...
  • 10.3k
1 vote
Accepted

Debian - check which versions of a package were previously installed

The only history of package versions is the various logs that trace package installations and upgrades; that includes apt’s logs in /var/log/apt (/var/log/apt/history* in particular), but also dpkg’s ...
1 vote
Accepted

Debian shared library setup

The problem comes from the presence of the full version in the package name: libthreadx0.0.2 and libthreadx0.0.1. When you install the former, dpkg doesn’t consider it to be an upgrade to the latter, ...
1 vote
Accepted

dpkg-genbuildinfo: error: badly formed line in files list file, line 1

As further research showed, the “files list file” is an auto-generated file named debian/files. As I suspected, there was no issue with the .install file. Looking at debian/files, the first line read ...
1 vote
Accepted

Conversion of Debian "source package" for use on GitHub

To clean a Debian package, i.e. remove all generated files and restore the source to its initial state, run fakeroot debian/rules clean dhcpcd5 is a “3.0 (quilt)”-format package, so extracting it ...
1 vote

how to get the deb package full path in the pre-install script

The author of a deb file should not have the right to decide how a user archives their packages. When you dpkg -i mypkg.deb, mypkg.deb is not deleted. You, as a user, can choose whether to archive ...
  • 10.3k

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