apt-get is a command-line interface to the Advanced Packaging Tool (apt) which is responsible for installing, removing, and upgrading packages.
Questions tagged [apt-get]
393 questions
78
votes
4 answers
How to find out which versions of a package can I install on APT
Using APT, you can install a specific version of a package using:
apt-get install package=1.0
But you can't do
apt-get install package=1.*
So, how can I find out which versions are avaliable for package on a specific repository, or in all…
Camilo Martin
- 2,604
- 4
- 32
- 41
34
votes
4 answers
apt-get update is failing in debian
cat /etc/apt/sources.list
deb http://deb.debian.org/debian jessie main
deb http://deb.debian.org/debian jessie-updates main
deb http://security.debian.org jessie/updates main
then apt-get update is failing.
If i remove the second line then above…
user1012087
33
votes
2 answers
Can I make apt-get always use --no-install-recommends?
I'm trying to create a minimalist debian install for my netbook. I have a clonezilla restore point that I made right after a fresh minimal debian install.
I do not have any packages other than what debian installs automatically during a minimal…
Chuck
- 331
- 1
- 3
- 3
33
votes
6 answers
sudo apt-get update couldn't create temporary file
Tried to do sudo apt-get update, get this response every time I run it:
Get:1 http://repo.radeon.com/rocm/apt/debian xenial InRelease [1814 B]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Err:1…
Coloradohusky
- 473
- 1
- 5
- 12
29
votes
2 answers
How can I check the version of packages to be installed with apt-get?
After running apt-get upgrade, I get a list of the packages that will be upgraded. I would like to know the version number for one of these packages. (Not the current one but the one that will be installed).
How do I get the version number of the…
marjasin
24
votes
2 answers
Why does apt-get sometimes asks for confirmation?
Sometimes it does this:
After this operation, 713kB of additional disk space will be used.
Do you want to continue [Y/n]?
And sometimes not, and just assumes 'yes' and downloads automatically (I can't paste the actual output because I don't know…
Mark
- 333
- 3
- 8
21
votes
1 answer
Why use the command apt-get --purge remove over apt-get purge in Linux?
I have been uninstalling applications as well as removing or purging their configuration files using the command apt-get --purge remove {package_name}.
I have come across several posts on the net including Ubuntu's guide at…
PeanutsMonkey
- 8,900
- 36
- 90
- 133
20
votes
4 answers
Ignore packages that are not currently installed when using "apt-get remove"
I have a scenario where I'd like to remove a set of packages that may or may not be installed, and I'd like apt-get to remove those that are and silently ignore those that aren't. Something like:
apt-get remove foo bar baz
which, if foo and bar…
javawizard
- 299
- 1
- 2
- 6
20
votes
2 answers
Can apt-get be used on Red Hat systems?
We know that apt-get is used on debian based systems so what is used on Red Hat Enterprise Linux (RHEL) systems? Is it possible to install and use apt-get on Red Hat?
OmiPenguin
- 709
- 3
- 8
- 20
19
votes
4 answers
Continue on error when apt-get encounters an install unable to locate package issue
When I run the following:
sudo apt-get install vim abcde php5-cli
It fails with the following message which is the expected behavior:
E: Unable to locate package abcde`.
I want it to install vim and even if there is an error on abcde just…
tbenz9
- 6,987
- 3
- 29
- 32
19
votes
4 answers
When would you use apt-get remove over apt-get autoremove?
I understand that apt-get remove removes packages and apt-get autoremove is to remove any packages that were installed to fulfil a dependency for a given package. So for example if I installed LibreOffice and it had dependencies on say Java and…
PeanutsMonkey
- 8,900
- 36
- 90
- 133
18
votes
7 answers
apt-get update not working: Signing/ Verification errors
When I run apt-get update I get
Ign:1 http://dl.google.com/linux/musicmanager/deb stable InRelease
Ign:2 http://archive-4.kali.org/kali kali-rolling InRelease
Hit:3 http://archive-4.kali.org/kali-security sana/updates InRelease
0%…
Zach
- 181
- 1
- 1
- 5
15
votes
1 answer
How do Ign and Hit affect apt-get update?
My understanding of Ign and Hit which are displayed in the output of the command apt-get update is that Hit: File found. No change in its timestamp and Ign: File ignored. No change in its content..
What does this mean exactly? For example if a…
PeanutsMonkey
- 8,900
- 36
- 90
- 133
14
votes
1 answer
What does installation script do in apt-get install?
It seems apt-get install will download a Debian package and try to run installation script for:
Create proper directory
Create proper account
Copy Binary files
Copy Data files
Copy Conf files
Copy init.d script
Start service
etc.
I’m really…
ShenLei
- 333
- 2
- 10
14
votes
3 answers
How to upgrade to latest git on debian 7?
I have installed git through apt-get on debian 7 which gives me:
# git --version
git version 1.7.10.4
I would like to ugrade to the latests version of git. I have tried:
sudo apt-get install python-software-properties
sudo add-apt-repository…
u123
- 540
- 1
- 13
- 27