Questions tagged [apt-cache]

See apt, the deafult package manager for ubuntu.

A tool to search Aptitude with. Usage: apt-cache [options] [-o config=string] [-c=cfgfile] command [pkg|file(s)|regex]

91 questions
172
votes
2 answers

Is it possible to clean the APT cache from the command line?

I ask because Ubuntu Tweak's Janitor is frozen due to the sheer number of packages in the cache that accumulated during the upgrade from 12.10 to 13.04.
Josh Pinto
  • 8,089
149
votes
5 answers

var/cache/apt/archives occupying huge space

I am in the process of cleaning up my system. And I see a lot of space occupied by this folder /var/cache/apt/archives (1.5GB). Is it absolutely necessary to keep all these archives?
Vivek
  • 3,829
26
votes
4 answers

Is it safe to manually delete the /var/cache/apt content?

On an embedded system with a very limited disk space I have the folder /var/cache/apt full with some 700MB of srcpkgcache.bin.* and a couple of large *.bin files. Performing sudo apt-get clean did not make a visible difference. Is it safe to…
ysap
  • 7,191
25
votes
1 answer

In 'apt-cache depends' output, what is the meaning of Suggests, Recommends, |, <>?

I've checked the man/info page, but there is no reference to some aspects of the output fomat of apt-cache depends The man/info page tried to be helpful (in an obtuse manner); quote: "For the specific meaning of the remainder of the output it is…
Peter.O
  • 25,251
23
votes
4 answers

Using apt-get to remove packages and dependencies

I've recently been reading through a lot of questions/answers/opinions about removing packages and dependencies. There's a lot of different ways to do it, some being overly convoluted and some being insufficient/incomplete. I want to ask here in…
21
votes
1 answer

What does the pipe | indicate in apt-cache rdepends?

As I understand it, rdepends lists packages which depend on the specified package. Example: $ apt-cache rdepends abiword abiword Reverse Depends: abiword:i386 xubuntu-desktop |python-carquinyol-0.96 pkpgcounter lubuntu-desktop …
kiri
  • 28,986
14
votes
1 answer

Difference between apt-cacher and apt-cacher-ng

What exactly is the difference between apt-cacher and apt-cacher-ng? I can't seem to find anywhere comparing the two. I've found tutorials and manuals on both of them, and they seem to be the same from the set-up point of view. Is one better or more…
14
votes
4 answers

using apt-cache search

I am learning how to use apt. When I do an apt-cache search git to see all packages matching git, I see a bunch of packages whose descriptions have nothing to do with git. Why is this so and how can I fix it? (Ubuntu 12.04.2 LTS). Also, why is the…
Jason Posit
  • 249
  • 1
  • 2
  • 4
14
votes
1 answer

What do the numbers in the output of apt-cache policy tell us?

$ apt-cache policy pal pal: Installed: 0.4.3-8 Candidate: 0.4.3-8 Version table: *** 0.4.3-8 0 500 http://in.archive.ubuntu.com/ubuntu/ quantal/universe i386 Packages 100 /var/lib/dpkg/status In the above output what is the…
Raja G
  • 105,327
  • 107
  • 262
  • 331
9
votes
2 answers

update-java-alternatives jinfo file does not exist

I'm trying to learn how to quickly change which java version my system uses as described in this article: https://aboullaite.me/switching-between-java-versions-on-ubuntu-linux/ I've used apt-get install openjdk-8-jdk, and when I run sudo…
8
votes
1 answer

apt-get cannot install specific version listed in apt-cache policy

I'm trying to install a particular version of redis-server from a third-party repo using apt-get, that's listed in apt-cache policy, but cannot be installed. For example: $ apt-cache policy redis-server redis-server: Installed: (none) Candidate:…
6
votes
2 answers

apt-cache/apt search packages that are not installed

I can search packages with apt-cache search , or search installed packages with apt list --installed | grep . How about packages that are not installed? How do I search the list of non-installed package with apt-cache or…
6
votes
2 answers

sort the results from `apt-cache search `

Is there a way to sort the results from apt-cache search ?
user784637
  • 11,465
6
votes
2 answers

How to get a list of files for a package I haven't installed yet?

apt-cache search returns list of available packages. In my case I would like to look at the list of files that would be installed on my PC in case I install the package usb-creator-gtk. Something like dpkg-query -L does for an already installed…
user52151
  • 265
6
votes
1 answer

Cannot grep apt-cache show output

I have a list of packages and I want to know which packages are not available in the ubuntu repositories. I type this command but it returns nothing : $ apt-cache show vim TotO perl 2>&1 | grep "Unable to locate package" $ It occurs in both Ubuntu…
SebMa
  • 2,927
  • 5
  • 35
  • 47
1
2 3 4 5 6 7