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 ...
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 ...
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
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)
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: ...
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. ...
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 ...
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 ...
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 ...
this guide is great : http://www.howtogeek.com/howto/22881/remove-ubuntu-one-from-ubuntu-10.04/
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.
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 ...
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.
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 ...
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 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.
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 ...
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 ...
In newer versions of the package apt, there is also the apt-mark command apt-mark showmanual
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
Colin Watson Explains the reasoning behind removing aptitude: [...] aptitude has a different dependency resolver which handles things quite differently from apt-get, and the fact is that we simply do not routinely test that dependency resolver. [...]. The base system is constantly tight on space, and everyone wants a piece of that space. [...] (my ...
sudo mv /usr/share/mime/packages/kde.xml /usr/share/mime/packages/kde.xml.bkp sudo update-mime-database /usr/share/mime Should fix the warnings.
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 ...
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 ...
You can use any one of these commands, apt-cache search <package_name> aptitude search <package_name> apt-cache policy <package_name> sudo apt-get install <package_name> -s Output: karthick@Ubuntu-desktop:~$ sudo apt-get install sun-java6-jdk -s Reading package lists... Done Building dependency tree Reading state ...
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 ...
As Garry says, they're applications that install and remove software from Ubuntu's software repositories, amongst other tasks. If you've no idea what that means, let's step back one further: Software (like Firefox, GIMP, xchat, etc) is compiled and then packaged into *.deb files. These debs are essentially installers. They contain all the files that get ...
Only top voted, non community-wiki answers of a minimum length are eligible