Hot answers tagged aptitude
As far as I can see, in 10.04, the main differences between aptitude and apt-get are: aptitude adds explicit per-package flags, indicating whether a package was automatically installed to satisfy a dependency: you can manipulate those flags (aptitude markauto or aptitude unmarkauto) to change the way aptitude treats the package. apt-get keeps track of ...
No, dpkg only installs a package, so doing dpkg -i packageName.deb will only install this Deb package, and will notify you of any dependencies that need to be installed, but it will not install them, and it will not configure the packageName.deb because well...the dependencies are not there. apt-get is a Package Management System that handles the ...
You can use either of these two one-liners. Both yield the exact same output on my machine and are more precise than all solutions proposed up until now (July 6, 2014) in this question. Using apt-mark: comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u) Using aptitude: ...
Try this sudo php5enmod mcrypt sudo service apache2 restart
I believe this is self-explanatory: sudo apt-get update sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade For only specific packages, e.g. mypackage1 mypackage2: sudo apt-get update sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install mypackage1 mypackage2 ...
The short answer: The APT preferences file /etc/apt/preferences can be used to control which versions of packages will be selected for installation. Here is the file /etc/apt/preferences, which apt-get use to decide, which version it's have to select if there are many versions of a single packge. With this, any package that comes from the local ...
Backup: apt-mark showauto > pkgs_auto.lst apt-mark showmanual > pkgs_manual.lst Restore: sudo apt-mark auto $(cat pkgs_auto.lst) sudo apt-mark manual $(cat pkgs_manual.lst)
The apt-get command closer to aptitude safe-upgrade is upgrade, but there is a difference. aptitude safe-upgrade upgrades currently installed packages and can install new packages to resolve new dependencies, but never removes packages. apt-get upgrade upgrades currently installed packages, but never installs or removes packages. So apt-get upgrade is ...
Install apt-file and run apt-file update Then use apt-file search sphinx-build to search for packages contanining a file named sphinx-build
sudo mv /usr/share/mime/packages/kde.xml /usr/share/mime/packages/kde.xml.bkp sudo update-mime-database /usr/share/mime This should fix the warnings.
Oneiric supports Multi-Arch, that is, allowing you to install packages of different architectures simultaneously (currently i386 and amd64 a.k.a. 32-bit and 64-bit). Some packages cannot be installed simultaneously (like libc6:i386 and libc6:amd64). aptitude cannot handle these cases and therefore thinks that it may be a good idea to remove those packages. ...
In newer versions of the package apt, there is also the apt-mark command apt-mark showmanual
aptitude is supposed to be a user level program whereas apt-get is supposed to be used by higher level programs. It just turns out apt-get is easy to use by users so they just use it instead of using the higher level managers like aptitude and synaptic. aptitude is more user friendly because it adds a layer of abstraction away from apt-get, apt-cache etc.., ...
Try using debconf-set-selections to set the value before installing the package: echo iptables-persistent iptables-persistent/autosave_v4 boolean true | sudo debconf-set-selections echo iptables-persistent iptables-persistent/autosave_v6 boolean true | sudo debconf-set-selections Or, via ansible - name: prevent the iptables-peristent install dialog ...
You can save all the deb files with dependencies using the following command sudo apt-get --download-only install packagename And the files will be stored under /var/cache/apt/archives If you need to download Ubuntu packages using another machine or OS, check the desired packages in Synaptic and select File > Generate package download script. You can ...
This has been covered in Bug #592336 on LaunchPad. However, in summary it was decided during the UDS-M (Ubuntu Developer Summit) that 2 additional MB could be gained on the limited LiveCD image if Tasksel and Aptitude were removed. The initial reason why aptitude was included in ubuntu was that the desktop installer (ubiquity) depended on it, but now the ...
apt-mark showauto | grep -iE '^foobar$' will output "foobar" if the package was installed automatically, nothing otherwise. aptitude search '!~M ~i' will list the packages that were not installed automatically. It's a pity aptitude won't be part of the default install on Ubuntu Desktop starting from 10.10.
I guess it's a matter of personal choice by now. I find typing aptitude search makes more sense to me than apt-cache search, and I like that it tells me which packages I have installed right there in the search output, instead of having to run dpkg -l.
This depends on whether the package containing the file is already installed. If so, use dpkg -S filename. If your intention is to find out which package to install to get a certain file, one option is to use the online packages.ubuntu.com: scroll down to "Search the contents of packages". Make sure that the right distribution is selected. If you're looking ...
this guide is great : http://www.howtogeek.com/howto/22881/remove-ubuntu-one-from-ubuntu-10.04/
All of those use dpkg as a backend. Neither one uses any specialized database that breaks when you use something else. It's definitely urban legend. If you want to install something from source code, cleanest way is to use checkinstall, or install it to /usr/local. Using package manager is better, because then removing that package is much easier.
Ubuntu comes with a default set of packages installed and the package manager track those packages. If you remove a package that is installed by default, it becomes marked as "deselected". This means it was installed previously, but has been removed. In fact any package that you install and then remove becomes marked as "deselected". This is useful for ...
Ubuntu is pretty smart. Just try to run it. $ sphinx-build The program 'sphinx-build' is currently not installed. You can install it by typing: sudo apt-get install python-sphinx
I have configured aptitude to write to a log (/var/log/aptitude). It produces output like this; Aptitude 0.4.11.11: log report Mon, Feb 9 2009 13:21:28 +0100 IMPORTANT: this log only lists intended actions; actions which fail due to dpkg problems may not be completed. Will install 6 packages, and remove 0 packages. 4096B of disk space will be used =======...
From the aptitude man page : As a special case, “install” with no arguments will act on any stored/pending actions. In other words, you tried to install those packages earlier (or they were brought as dependencies), yet something went wrong (or the process was interrupted) and it couldn't finish. aptitude is just trying to finish what it started. The ...
Although your main problem has already been answered, it looks like you're getting debconf warnings because you're running apt-get without an interactive tty. To get rid of these messages, you can set this environment variable: DEBIAN_FRONTEND=noninteractive
http://ubuntuforums.org/showthread.php?t=228309 indicates that it's possible via constructs such as ~n<package name> and this is confirmed by the user manual http://algebraicthunk.net/~dburrows/projects/aptitude/doc/en/ch02s03s02.html. ~n in ~n<package name> is a search pattern for matching package names. It's also possible to match other fields ...
You have probably removed linux metapackage by accident. If so, that should be fixed by: sudo apt-get install linux Further explanation: Because of technical reasons it's not wise for the kernels to be upgraded and replaced with the new one (i.e. let's say if the new one fails you may still boot into the old one). Thus they are packaged under the names ...
After running aptitude, use these key commands as found at Using aptitude GUI style: F10 to access the aptitude menu. ? this is to access "help" Use 'up' ↑, 'down' ↓ , 'left' ←, 'right' →, to navigate. Use Enter to select items. Use + or - to install, update, or remove a package Use g to preview or confirm actions q to quit –...
Only top voted, non community-wiki answers of a minimum length are eligible