Questions tagged [apt]

For questions about the use, design, function etc. of APT (Advanced Packaging Tool), the standard software package management system for Debian and its derivatives.

Here's some basic functionality offered by APT:

  • install/remove a software package (requires admin privileges):

    apt-get install/remove pkgname
  • display basic info about a package

    apt-cache show pkgname
  • display packages whose names and/or descriptions match the search pattern

    apt-cache search pattern

Here's a usage comparison with other package managers.

APT logs its activities in /var/log/apt/history.log.

The Debian Administrator’s Handbook includes two chapters which help understand APT: Packaging System: Tools and Fundamental Principles and Maintenance and Updates: The APT Tools.

Commonly asked Questions:

What information do I need to solve an APT dependency issue?

3037 questions
9 answers

How to install a deb file, by dpkg -i or by apt?

I have a deb package for installation. Shall I install by dpkg -i my.deb, or by apt? Will both handle the software dependency problem well? If by apt, how can I install from the deb by apt?
  • 92,534
  • 165
  • 512
  • 896
7 answers

How do I check package version using apt-get / aptitude?

Before I install a package, I'd like to know what version I would get. How do I check the version before installing using apt-get or aptitude on Debian or Ubuntu?
5 answers

What's the story behind Super Cow Powers?

As we know, apt-get has Super Cow Powers and aptitude does not: $ apt-get --help | grep -i cow This APT has Super Cow Powers. $ aptitude --help | grep -i cow This aptitude does not have Super Cow Powers. and…
  • 103,581
  • 18
  • 226
  • 273
5 answers

How can I update to a newer version of Git using apt-get?

I've just set up a new machine with Ubuntu Oneiric 11.10 and then run apt-get update apt-get upgrade apt-get install git Now if I run git --version it tells me I have git version but on my local machine I have the much newer git version…
  • 42,359
  • 67
  • 143
  • 166
16 answers

List available updates but do not install them

I want my cron-run reporting script to notify me in case there are updates for my packages. Is the a way to make apt-get give me the list of available updates but don't do anything more?
  • 2,799
  • 2
  • 14
  • 3
10 answers

What is the real difference between "apt-get" and "aptitude"? (How about "wajig"?)

I know that both apt-get and aptitude are command line package management interfaces on Debian derived Linux, with different options, but I'm still somewhat confused. Under the hood, aren't they using the same APT system? Why does Debian maintain…
Kevin Cantu
  • 3,684
  • 4
  • 17
  • 13
8 answers

Convince apt-get *not* to use IPv6 method

The ISP I work at is setting up an internal IPv6 network in preparation for eventually connecting to the IPv6 internet. As a result, several of the servers in this network now try to connect to via its IPv6 address by default…
  • 29,276
  • 11
  • 57
  • 67
1 answer

How to apt-delete-repository?

I would like to run the reverse of this command to remove the non-compatible repository in Debian 8.1 sudo add-apt-repository -y ppa:nemh/systemback where the command add-apt-repository is in the package software-properties-common. I could not…
Léo Léopold Hertz 준영
  • 6,548
  • 28
  • 85
  • 183
4 answers

How to add repository from shell in Debian?

In Ubuntu one can add a repository via following command - sudo add-apt-repository ppa:yannubuntu/boot-repair As Ubuntu is based on Debian code base, I was expecting that the same would work in Debian too, but it doesn't. What is the reason for…
Kshitiz Sharma
  • 8,255
  • 20
  • 53
  • 73
4 answers

-bash: sudo: command not found

I am trying to deploy django app. When I print apt-get update I see W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (13: Permission denied) W: Unable to read /etc/apt/sources.list.d/ - DirectoryExists (13: Permission denied) W: Unable to…
  • 1,697
  • 2
  • 12
  • 9
4 answers

What is yum equivalent of 'apt-get update'?

Debian's apt-get update fetches and updates the package index. Because I'm used to this way of doing things, I was surprised to find that yum update does all that and upgrades the system. This made me curious of how to update the package index…
  • 61,932
  • 85
  • 220
  • 285
12 answers

List packages on an apt based system by installation date

How can I list installed packages by installation date? I need to do this on debian/ubuntu. Answers for other distributions would be nice as well. I installed a lot of stuff to compile a certain piece of code, and I want to get a list of the…
Elazar Leibovich
  • 3,041
  • 5
  • 25
  • 28
9 answers

Which installed software packages use the most disk space on Debian?

Disk space on my root partition is running low, so I want to delete some applications from the system. How can I see which software packages use the most disk space? Is it possible to view that from aptitude? I know about generic disk space…
Mirzhan Irkegulov
  • 7,888
  • 11
  • 42
  • 54
3 answers

gpg: keyserver receive failed: No dirmngr

While trying to receive keys in my Debian Stretch server, I get this error: sudo apt-key adv --keyserver hkp:// --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF Executing: /tmp/apt-key-gpghome.4B7hWtn7Rm/…
  • 8,581
  • 6
  • 25
  • 41
5 answers

Unable to locate package `docker-ce` on a 64bit ubuntu

I'm trying to install Docker on a Ubuntu 64 machine following the official installation guide. Sadly Ubuntu seems it is not able to locate the docker-ce package. Any idea to fix it or at least to track what is happening ? Here some details for…
  • 1,483
  • 2
  • 11
  • 8
2 3
99 100