dpkg is the package format used by Debian, Ubuntu and other popular GNU/Linux distributions as well as the tools used to work with dpkg packages.
Questions tagged [dpkg]
169 questions
11
votes
5 answers
How do I get a list of packages that "Provides" something" using dpkg?
I see that dpkg has a "Provides" field for packages.
$ apt-cache show vim-tiny | grep Provides
Provides: editor
$
How do I know which packages provide i.e. "editor"?
![](../../users/profiles/80866.webp)
Janus Troelsen
- 1,014
- 1
- 8
- 18
10
votes
3 answers
What is the easiest way to create a virtual package in debian?
What is the easiest way to create a "virtual package" in debian?
My problem: I have compiled/installed mysql from source and now need to tell other packages that mysql is already installed (otherwise they will also try to install mysql...). I…
![](../../users/profiles/86726.webp)
Markus
- 847
- 2
- 10
- 13
9
votes
4 answers
In Ubuntu Linux, how do I list packages installed from the “universe” repository?
On an Ubuntu 10.04 LTS server, I want to list installed packages and see what repository they come from.
It’s easy to list installed packages, but it does not include the name of the repository (such as “main” or “universe”). And this information…
![](../../users/profiles/15092.webp)
Nate
- 2,316
- 4
- 21
- 24
8
votes
2 answers
debian, diff, config default
I want to know if is posible to get the diff on the original versus the current config files of installed debian packages.
If found an answers which shows up the modified config files, but I find no way to generate the diff.
The command…
![](../../users/profiles/155052.webp)
Neoecos
- 183
- 3
8
votes
2 answers
Odd behavior of apt-get with post-inst instructions, and .desktop files
We have a number of hand-built (with fpm and jenkins) .deb files in a local Apt repository (reprepro).
These .debs contain a .desktop file that will be picked up by xdg-desktop in a post-inst script.
If we install the deb file by hand, on a new…
![](../../users/profiles/16732.webp)
Tom O'Connor
- 27,440
- 10
- 72
- 148
7
votes
3 answers
How can I ignore files/directories when building debian packages?
I have made some debian packages to ease deployment of configurations on new servers and want to put them in SVN source control. The problem is that SVN creates a .svn directory for each subdirectory in the source tree, so I can't build packages on…
![](../../users/profiles/52291.webp)
Thiago Padilha
- 289
- 1
- 4
- 10
7
votes
6 answers
Unable to force Debian to do unattended install... libc6 wants interactive confirm
I'm trying to create a script that forces a Debian Lenny install to install the latest version of CRAN R. During the install it appears libc6 is upgraded and the install wants interactive confirm that it's OK to restart three services (mysql, exim4,…
![](../../users/profiles/14618.webp)
JD Long
- 445
- 1
- 4
- 13
6
votes
8 answers
gem vs apt-get in a server environment
Where should I draw the line between using apt-get and gem when setting up a server to host ruby on rails with passenger + apache?
Does it even matter?
It feels wrong to mix package management systems when considering software updates and so on.
How…
![](../../users/profiles/25928.webp)
Felix Andersen
- 163
- 4
6
votes
1 answer
How to use dpkg-divert to temporarily remove/replace symlink when package is installed?
The default nginx package creates a symlink named default in the sites-enabled dir, which points to a default config file in sites-available. I'm currently creating a package for an app that sits on top of Nginx, and I want to remove or move away…
![](../../users/profiles/64909.webp)
Suan
- 163
- 1
- 5
6
votes
2 answers
What exactly does this dpkg command do?
I fixed a permissin problem for nagios like discribed here.
The command was:
sudo dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
sudo dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
Okay its obvious…
![](../../users/profiles/53998.webp)
The Shurrican
- 2,230
- 7
- 39
- 58
6
votes
4 answers
How do I check to see if an apt lock file is locked?
I am writing a script to do some apt commands, but I am running into potential issues of the apt/dpkg databases being locked so my script bails. I want to check the lock files (i.e. /var/lib/dpkg/lock) before doing anything just like apt does when…
![](../../users/profiles/10162.webp)
gondoi
- 91
- 1
- 5
5
votes
1 answer
dpkg-reconfigure: dialog frontend sets up postfix successfully; non-interactive frontend fails
(N.B. In this question, a leading # indicates a root prompt, not a comment. Also, I have replaced the actual hostname with .)
As the debconf (7) man-page states, dpkg-reconfigure can be invoked with any one of several front-ends,…
user61015
5
votes
1 answer
What is the recommended method of installing an arbitrary version of a package using apt?
The Problem:
I need a way to install specific, pinned versions of some packages on my Debian system. snapshot.debian.org appears to offer a means to do this, however even after adding a snapshot to my apt-sources I am unable to apt-get install some…
![](../../users/profiles/226376.webp)
devnall
- 153
- 3
5
votes
1 answer
debian/ubuntu: Prevent UI prompting in command-line apt-get
So, in order to prevent console-UI (newt, snack, dialog) prompts during the dpkg post-install, you have to do something like:
debconf-set-selections <<< 'mysql-server mysql-server/root_password password password'
debconf-set-selections <<<…
![](../../users/profiles/93185.webp)
Dustin Oprea
- 510
- 1
- 7
- 19
5
votes
2 answers
How to completely remove a package in Debian?
I tried to use this:
aptitude remove denyhosts
And it seemed successfully but after a reboot after I use:
ps aux | grep "denyhosts"
I see denyhosts is still loaded after startup.
So what am I supposed to do so that I can stop and destroy it once…
![](../../users/profiles/19470.webp)
datasn.io
- 279
- 1
- 4
- 15