Hot answers tagged apt-get
apt-cache show <packagename> should include the full version numbers.
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 ...
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 ...
If you just want the version info without the description and such, use apt-cache policy instead of apt-cache show.
Just as an addendum apt-cache madison package 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 | ...
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
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 ...
They're stored in: /var/cache/apt/archives/ unless you've issued a: apt-get clean
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/).
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 ...
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 ...
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>. ...
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 ...
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 ...
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.
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.
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 ...
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 ...
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 ...
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 ...
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 ...
Basically, since dpkg and apt are shared between Debian and Ubuntu, they will be able to read and use repositories made for "the other side" without problems. However, as soon as you try to install non-trivial packages from a "foreign" repository, you are likely to run into dependency problems. Some packages are named differently on Debian and Ubuntu, so if ...
When bash encounters a command it cannot find, it looks for a function called command_not_found_handle() and executes it. Under ubuntu, this is defined in /etc/bash.bashrc By default it runs a python script in /usr/lib/command-not-found You could make it do whatever you liked, and this is best done in your own ~/.bashrc file: ...
Also, you might find this blog post helpful. It worked for me and was totally painless (script install vs building your own Java package): You can find the script and full usage instructions on github. The quick and dirty guide for using this script is as follows: cd ~/ wget https://github.com/flexiondotorg/oab-java6/raw/master/oab-java.sh -O ...
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.
Yes, use the dpkg command like dpkg -L hadoop-0.20 The converse question (finding the package providing a given file) is answered with e.g. dpkg -S /usr/include/gc/gc.h Read more about Debian packaging related tools PS. Ubuntu (and other Linux distributions, eg Mint) is a derivative of Debian.
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
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.
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 ...
Only top voted, non community-wiki answers of a minimum length are eligible