Tag Info

Hot answers tagged

36

apt-cache show <packagename> should include the full version numbers.


29

Just as an addendum apt-cache madison <<package name>> will list the versions available from all your sources. apt-cache madison vim vim | 2:7.3.547-1 | http://debian.mirrors.tds.net/debian/ unstable/main amd64 Packages vim | 2:7.3.429-2 | http://debian.mirrors.tds.net/debian/ testing/main amd64 Packages vim | 2:7.3.429-2 | ...


23

In short: apt-get install does everything that is needed that your system can successfully execute the new installed software application. Longer version: Preliminaries: From the manpage: All packages required by the package(s) specified for installation will also be retrieved and installed. Those packages are stored on a repository in the ...


22

The command apt-get --purge remove has been around since APT was added to Debian and it used to be the only way to completely purge a package with apt. The command apt-get purge was finally added in the last few years, the old option was not removed, and there is still lots of documentation showing the older syntax. They do exactly the same thing. I ...


20

You can configure apt via apt.conf files. Here is a command I use on my server (as root): cat > /etc/apt/apt.conf.d/01norecommend << EOF APT::Install-Recommends "0"; APT::Install-Suggests "0"; EOF To see if apt reads this, enter this in command line (as root or regular user): apt-config dump | grep Recommends


19

The confirmation dialog will not only appear when you would install packages you didn't ask for, but also in the following cases: Installing packages that you didn't specifically want to install Removal of essential packages Changing a held package (a held package is one you want to keep in the version currently installed) You can override it with one of ...


17

If you just want the version info without the description and such, use apt-cache policy instead of apt-cache show.


12

dpkg -L <package_name> will give you a list of all files in a package. Usually python packages install to /usr/lib/python/ (ie: /usr/lib/python2.7/).


11

They're stored in: /var/cache/apt/archives/ unless you've issued a: apt-get clean


11

From what I can see in the apt source code, "Ign" means there was an error retrieving the file, but the error is being ignored. When I run apt-get update, I see 3 Ign messages, all of which are for Translation-en files. A packet dump shows that the requests for those files got HTTP 404 responses. So the translation files are missing, which makes sense ...


10

You can use my Launchpad PPA, currently it gives you git 1.8.0. Git is available for the following Ubuntu distributions: Ubuntu 12.10 (Quantal) Ubuntu 12.04 (Precise) Ubuntu 11.10 (Oneiric) Ubuntu 11.04 (Natty) Ubuntu 10.10 (Maverick) Ubuntu 10.04 (Lucid) To install my git repository follow the instructions at: Git Packages for Ubuntu • A Virtual Home ...


10

The apt-cache show <Package> shows the package descriptions of all the versions your debian installation can install (i.e. from cached list of packages available from the repos listed in sources.list). So I guess you could try something like (for e.g.): # apt-cache show package | grep Version Version 1.0 Version 0.9-2squeeze1 The apt-cache show ...


9

It depends on how much you trust the dependancy tracker. While almost always correct, there are times when you would want a dependancy to remain, particularly when you are a developer or power user installing software that is not in the repository. If you always install software through apt-get, without exception, and trust all the dependancies to be ...


9

I managed to solved the problem by editing the /etc/apt/sources.list file and replacing all instances of archive.ubuntu.com and security.ubuntu.com with old-releases.ubuntu.com. After that, I ran sudo apt-get update to update the indexes.


9

You can probably create an alias for that. Assuming you are using Bash, create a .bash_aliases file in your Home directory, if it already doesn't exist. Then, add a line with the following to the file: alias apt='sudo apt-get' Now close the shell and reopen it again. Now you can install any new package with the syntax apt install <package-name>. ...


8

Apparently git on a Linux system refers to GNU Interactive Tools. The command to download the Git version control system on Ubuntu is: sudo apt-get install git-core git-doc If you want or need additional tools (including GUI and Web access), you can: sudo apt-get install gitweb git-gui gitk git-email git-svn


7

The Sun/Oracle JDK package is no longer available in Ubuntu due to Oracle retiring the 'Operating System Distributor License for Java'. Story here. Originally Canonical were going to make it so that existing installations of Sun's JRE/JDK would get removed on an apt-get update, but they reversed that decision (however updates/installs will no longer be ...


6

As an elaboration on Piskvor's advice ("don't"), you could issue this command at the shell prompt: sleep 10m ; shutdown -h now The above assumes you're running as superuser. The idea is to let apt-get finish before shutting down without your having to sit there waiting for it to end. You could write a more elegant script that, e.g., uses ps and grep to ...


6

If it needs to install more than the packages you explicitly asked for, it'll ask for permission, else it won't, i believe. If its an annoyance, you can use the -y switch to automatically assume yes.


6

No, apt is Debian specific. apt uses dpkg to install .deb files (which are binary files that are specific to Debian). Red Hat based Linux distributions uses the rpm package management system. You can use yum to retrieve and install rpms on Red Hat distributions: yum search som-package-name yum install some-package-name If you want to install an rpm ...


6

apt is a Debian only application that was inherited by ubuntu. Having it work on AIX would be akin to trying to run yum on Ubuntu. There is no reason whatsoever this command would work Unfortunately, it looks like AIX systems don't have a repository for its package manager at all - you will need to obtain AIX packages (which seem to be RPMs) or compile ...


5

Oh man, you are definitely going to have a very bad time. You come from Ubuntu. Here you don't have sudo, but you may have su. Check it and if you do have it, this problem is solved. AIX not having Advanced Packaging Tool framework support is not easily solvable. Take into account that if you ran fedora or CentOS you would not also have those, and you ...


5

W: Duplicate sources.list entry http://packages.bosslinux.in/boss/ anokha/main i386 Packages (/var/lib/apt/lists/packages.bosslinux.in_boss_dists_anokha_main_binary-i386_Packages) W: Duplicate sources.list entry http://packages.bosslinux.in/boss/ anokha/contrib i386 Packages ...


5

control+z doesn't cancel the command, it pauses it. You need the process to close in order to start a new install. Bring it back to the foreground using the fg command, then stop it using control+c.


5

Since a newer version of this package is not available in wheezy-backports you have two options: Ask the package maintainers to prepare a backport. It's not guaranteed to work but some maintainers are positive about making backports, so I'd just try. The maintainers' e-mails could be found there. Build it yourself from the sources. This could be done two ...


5

You can still use the Git PPA for Ubuntu Precise by telling apt to build from the latest source it finds there. The distributions are similar enough that this should work just fine. I used it with success on Raspbian (which is based on wheezy) to get packages for armhf, but it should work for any architecture. First add the GPG key for the PPA: apt-key ...


5

R 3.0.0 has been available for Ubuntu essentially since the release, the procedure is always the same: I update the package for Debian (unstable), Michael takes these and rebuilds them on launchpad for several Ubuntu releases. See the very clear README at the CRAN mirrors. This time, however, it is a little different as R 3.0.0 requires you to updated all ...


5

There is a project out there that claims to support apt style repositories (as well as the apt-get command) on RPM based distros. It is called apt-rpm and is used as the default package manager on a few distros, though not on RHEL/Fedora. Problems: It seems not to be really maintained since ~2008; it may have incremental patches or fixes since then, but ...


5

The packages have been designed to play nice with the other packages and with the general behavior of the distro. Any compatibility issues with self-compiled software is your problem.



Only top voted, non community-wiki answers of a minimum length are eligible