Alternative package manager for Debian and derivatives which offers an ncurses based text-mode user interface (TUI) and mighty search patterns besides a command-line interface similar to `apt-get`'s command-line interface.

learn more… | top users | synonyms

157
votes
10answers
52k views

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 ...
140
votes
3answers
168k views

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?
14
votes
2answers
561 views

Why do package names contain version numbers?

While working with Ubuntu and other Debian-based distros, I've noticed that packages in the software repos often contain the major version number. For example, Apache: apache2 Tomcat: tomcat7 PHP: ...
10
votes
2answers
546 views

How to list files and folders that are not maintained by any DEB package

I am in the process of moving my files from one Debian machine to another so that I can use the old machine for a different purpose. I do not want to miss any file because I will be formatting the ...
10
votes
2answers
7k views

What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?

It's a very simple question, but I wonder, is there a term to refer to the subset of packages that is automatically installed by Debian distribution? I though that it had something to do with ...
10
votes
4answers
1k views

How can I reliably “hold” a package in Debian?

I have a package in Debian that has been manually patched (not ideal, I know) that I must hold at its current version so upgrades don't overwrite the patched changes (I will manually inspect and apply ...
9
votes
2answers
3k views

How to make apt-get accept new config files in an unattended install of debian from Repo

I am writing a script for a unattended install of a package that is in our repo, it is a software package with one of Debian's marked config files. Is there any option that I can pass to ...
9
votes
2answers
7k views

Can I rollback an apt-get upgrade if something goes wrong?

Is there a way, before starting an aptitude upgrade or apt-get upgrade, to set up something so that you can "easily" rollback your system to the "apt" state it was before the actual upgrade, if ...
8
votes
4answers
19k views

Removing broken packages

Recently in a bout of frustration with getting phpmyadmin setup, I decided to start from scratch. Unfortunately, during the uninstall phase, I was prompted with the root password for mysql which I ...
7
votes
1answer
6k views

How to install some packages from “unstable” Debian on a computer running “stable” Debian?

On a computer running "stable" Debian, when trying to install a package which is in the unstable list on the Debian web site using the aptitude install <package>/unstable command, I get output ...
7
votes
1answer
672 views

Debian: How to delay configuration when installing/upgrading?

One of my Debian systems is rarely upgraded. So when it is time to upgrade, there are loads of packages. Right now I basically have to monitor the upgrade, because every 50 packages or so there is a ...
6
votes
3answers
889 views

How do I find installed packages that have no install candidate?

I'd like to retrieve a list of installed packages that have no install candidate (e.g., because I removed an apt source file entry). How would I do that on Debian-based systems?
6
votes
1answer
2k views

How to safely resume an aptitude dist-upgrade after SSH timeout?

I started aptitude dist-upgrade over SSH on my local network. At some point the session timed out but the upgrade was not finished (it was left at one of those accept software agreement screens-- I ...
6
votes
1answer
332 views

aptitude: Meaning of curly brackets, i.e. package1{b} package2{a} package3{u}

When using aptitude, the list of changed packages sometimes has a single character in curly brackets behind some package names. The man-page has two examples of them but does not explain them (version ...
6
votes
1answer
1k views

Output visual (ASCII) Debian dependency tree to terminal?

I'm not sure if this is more of a SuperUser or UnixLinux question, but I'll try here... Recently, I found this: #710689 - aptitude: use unicode character in the trees - Debian Bug report logs It ...
5
votes
6answers
7k views

Can I use `apt-get` to upgrade to the latest version of Nagios?

At the time of this writing the latest version of Nagios is 3.3.1. I am running Ubuntu 10.04 and have used apt-get update; apt-get install nagios3 to end up with version 3.2.0. I know there are a lot ...
4
votes
4answers
173 views

Is it possible to determine what is inside Debian package without installing it?

I need a markdown library for development - based on package names I could not understand which one I should install... den@playground:~$ sudo aptitude search markdown p html2markdown ...
4
votes
2answers
3k views

How to show only installed packages by executing “aptitude search”?

After executing the aptitude search pattern command, I need to see only installed packages in the search result. Is there any way to do that?
4
votes
2answers
459 views

Wildcards in aptitude

I want to do something like aptitude -P install mypackage* which should install all packages which start with "mypackage". How can I do this with aptitude?
4
votes
2answers
1k views

How to run a command after apt-get upgrade

Recently I came across the nice checkrestart tool, that checks if running processes use an outdated version of a recently updated library and would need a restart to load them with the updated lib. At ...
4
votes
3answers
176 views

Using apt or aptitude to get version information about an uninstalled package?

I'm looking to install a package, but I'd like to make sure that I can't get a more recent version than, e.g., a PPA. Is there an aptitude or apt-get command that will enable me to input a package ...
4
votes
1answer
251 views

Can aptitude group or search for packages which nothing depends on?

With aptitude: I can see the number of reverse dependencies with %r in the display format string (preferences), but how can I group/limit the package list according to that count? I want to ...
4
votes
1answer
5k views

How do I fix these broken dependencies?

aptitude tells me I have some packages with broken dependencies: kmiller@debian-dev-box:~$ sudo aptitude search '.*' | grep ^.B iB console-setup-linux - Linux specific part of ...
4
votes
2answers
108 views

Aptitude - Remove all Packages in X11 catagory, except for dependencies of a specific package

I would like to remove most of the packages in the X11 category from my system, however some of those packages are depended on by the 'beaglebone' package. How could I ask aptitude to remove ...
4
votes
1answer
122 views

How to list all aptitude user tags or the user tags for a package?

I'm in a bit of a pickle. Following my own counsel I started using user-tags when working on projects, but now I don't remember how I called some of these tags and this cancels their usefulness. Is ...
4
votes
1answer
146 views

How can I search for packages depending on a exact package?

I'm experimenting a bit with aptitude search terms and finally discovered how to do search on dependencies, which is: aptitude search '?depends("searchterm")' The only problem that I've found is... ...
4
votes
2answers
3k views

Configure MC and aptitude color schemes

I'm using Ubuntu, and I'm having trouble reading text in MC and Aptitude because of the color scheme. Is there any way to change it?
4
votes
3answers
316 views

SSH pipe broke while running apt upgrade. What can I do about it?

I was connected to my aws debian wheezy server and while running apt-get upgrade the ssh pipe broke. I didn't use screen or anything, so I don't think there's a way to recover that session. If I ...
4
votes
1answer
81 views

Installed using apt-get, then ran out of storage

I attempted to install a large package, forgetting that I had little space left, and now I am a little stuck. When I attempt to remove any packages I get the following error: E: dpkg was ...
4
votes
1answer
523 views

apt-get doesn't upgrade openssl on debian 7

I'm facing the following problem. If I run the command sudo apt-get upgrade, I get: Reading package lists... Done Building dependency tree Reading state information... Done The following ...
4
votes
1answer
211 views

How to de-select packages of a certain architecture in aptitude

I'm upgrading some Debian machines from i386 arch to amd64. The process is fairly straitforward: Boot a amd64 kernel For libraries which are multiarch-capable, install their amd64 companion ...
4
votes
1answer
399 views

Apt/Aptitude: how to filter packages that are impossible to install?

Especially when running Sid, there are many packages that become non-installable as the dependencies change ABI versions, or the dependencies themselves may have been dropped. It'd be good to know how ...
4
votes
2answers
315 views

How do I hide packages from appearing in apt system?

The list of uninstalled packages appearing in my aptitude is massive, but is full of packages that I'm very sure I will never ever install. E.g. my laptop is using intel graphics, so it doesn't make ...
3
votes
1answer
1k views

Is there apt-get for windows?

If it was windows machine that had no internet connection, what I would do is downloading the installers/programs on another computer, putting them on a portable media, copying them on the ...
3
votes
1answer
51 views

How to change automatically installed package to intentionally intalled?

I'm using Debian Jessie. I'm installing some software Z from source. Installation instructions inform that it depends on Debian package X. I checked in aptitude and I have this package installed, but ...
3
votes
1answer
117 views

Why do I need to add a GPG-key with apt-key before adding URL to sources.list and download-installing an application with apt-get?

I went on to download an application today. It had it's instructions listed, step by step, number one being: adding a GPG-key with apt-key. It was followed by adding the application to apt/sources and ...
3
votes
2answers
470 views

How do I remove persistent config data from APT?

When I remove packages from my system with APT-based programs, they often leave behind some kind of residue (referred to as "residual config") that seems to serve no purpose other than annoying me. ...
3
votes
1answer
377 views

Aptitude: What is the filter for virtual packages that has been provided?

The ~v flag will display all virtual packages, but even if they are already provided by installed packages, adding ~i will make the list empty as virtual packages can never have i flag. So how do I ...
3
votes
4answers
11k views

debian: Remove or reinstall package in a very bad inconsistent state

I'm having a package management problem: At some point, I must have interrupted an update or something, because the bluez package has broken. I've tried removing and/or reinstalling, but I get ...
3
votes
1answer
4k views

How to deal with a package “not upgraded” using aptitude?

I'm (still) on Debian Squeeze. When I try to upgrade the system, here's what I get: [09:20]/root# aptitude upgrade No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly ...
3
votes
2answers
3k views

How do I update my Debian kernel?

Essentially I have an Ubuntu laptop and a board running Debian. I have installed the same kernel module and a utility for managing it on each, using aptitude. Unfortunately, the versions of the ...
3
votes
1answer
762 views

Trying to use multiple Debian repositories

General situation: I need to port a Qt project from MS Visual Studio 2010 to Linux (Debian). In VS 2010 I have Qt v.4.8.1, but in Debian it is Qt v.4.6.1. This difference prevents me from porting, as ...
2
votes
2answers
658 views

'less' width issues

I'm connecting to my Linux boxes (primarily Debian Squeeze) using Putty for Windows. Whenever I run a 'less' command, e.g. on an aptitude search, less truncates the listing to much less than my ...
2
votes
1answer
48 views

How can I know the dependency packages for an installed package?

Let's say I installed foo. The foo package depends on bar, so bar was installed to satisfy foo's dependency. How can I get Ubuntu/APT/dpkg to tell me that bar is installed because foo is installed? ...
2
votes
1answer
45 views

Start installation of a package, when the working one is finished

Suppose I install a package on a debian based system via sudo aptitude install mypackage. Suppose the package is big and it takes long to download and install it. When I notice that I want to ...
2
votes
2answers
229 views

Automatic package is installed, but aptitude doesn't find any rdependencies. What am I doing wrong?

I have a package lm-sensors automatically installed on my Ubuntu 10.04, but can't find packages, that depend on it: $ aptitude show lm-sensors Package: lm-sensors New: yes State: installed ...
2
votes
1answer
31 views

Is there a command that outputs ONLY the packages explicitly installed by the user? (ubuntu/debian)

I have tried searching for this but there seems to be no command that can output a list of packages (ideally in Ubuntu) that I have installed, not including any dependencies.
2
votes
2answers
476 views

Aptitude doesn't remove automatically installed packages

It seems aptitude doesn't remove automatically installed packages that are not depended on if these packages are suggested by any other (manually installed) ones. root@host:/# aptitude install ...
2
votes
1answer
28 views

Force installation of doc packages

I often find myself missing documentation when I happen to be offline. For this reason, I would like to force aptitude to install the corresponding doc packages whenever I install a package. Is there ...
2
votes
1answer
55 views

aptitude produces output twice

For quite a while, I get a double output of some messages from aptitude. Here’s an example: > sudo aptitude install mpw Couldn't find package "mpw". However, the following packages contain "mpw" ...