12 votes
Accepted

Why is 'apt-cache search' and 'find / -name' showing files associated with a package i have already purged?

Apt maintains a local database of all available deb package from all currently-known sources. "Available" means that it includes packages that you don't currently have installed as well as ...
user535733's user avatar
  • 62.1k
9 votes

Why does command apt-cache show result in "E: no packages found"? Ubuntu 16.04

The apt-cache show (or apt show) command needs an argument: the name of a package: $ apt-cache show gimp Package: gimp Priority: optional Section: universe/graphics Installed-Size: 16188 Maintainer: ...
Zanna's user avatar
  • 70.4k
8 votes
Accepted

Need to try to install a specific package version -- however apt-cache madison, apt-cache policy only seem to list the latest version

Unless you have the specific package version's .deb file downloaded, you can only get what's available in the Ubuntu Repositories (or third party repos or PPAs configured on your system), and usually ...
Thomas Ward's user avatar
  • 74.4k
7 votes
Accepted

How to install specific docker version from apt-cache policy docker-ce candidate list

Here the answer to how to install the desired docker version: Update the apt package index sudo apt-get update To install a specific version of Docker Engine - Community, list the available versions ...
apl's user avatar
  • 121
6 votes
Accepted

Cannot grep apt-cache show output

As per apt-cache man-page -q, --quiet Quiet; produces output suitable for logging, omitting progress indicators. More q's will produce more quietness up to a maximum of 2. You can also use -q=# to ...
N0rbert's user avatar
  • 99.8k
6 votes
Accepted

Does apt-cache policy <package_name> require sudo?

No, it doesn't make any changes and only grabs public details from your system (also available via http://packages.ubuntu.com/ with a browser though not as useful or machine specific as apt-cache ...
guiverc's user avatar
  • 30.4k
6 votes

Using apt-get to remove packages and dependencies

I also use aptitude purge for that: sudo aptitude purge <PACKAGENAME> This command removes the dependencies without removing the dependencies which are also dependencies of some other ...
Yuri P.'s user avatar
  • 186
6 votes

PPA: Install old version

First, create a new folder, and enter it. mkdir qelectrotech && cd qelectrotech Then, download the relevant packages from the PPA. wget https://launchpad.net/~scorpio/+archive/ubuntu/...
Archisman Panigrahi's user avatar
5 votes

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

You can of course delete pkgcache.bin and srcpkgcache.bin, nothing happens. Just run apt-get update to re-create them.
Tomas M's user avatar
  • 151
5 votes
Accepted

PPA: Install old version

The bad moment here is that you do not want to read QElectroTech-dev PPA description on its page. The developer clearly states: QElectroTech Ubuntu Repository for 0.9 devel version. Ubuntu pinning ...
N0rbert's user avatar
  • 99.8k
4 votes
Accepted

Cannot update package from ppa

Should have read the PPA description... To install this version: apt-get install handbrake-gtk Instead of handbrake (the default version in Ubuntu's repositories) so obviously it could not upgrade ...
wouter205's user avatar
  • 1,161
4 votes
Accepted

apt-cache/apt search packages that are not installed

You can see them like this... but not in nice colours apt list --installed=false | grep -v '\[installed'
Zanna's user avatar
  • 70.4k
4 votes

How to install specific docker version from apt-cache policy docker-ce candidate list

You double-clicked the version in apt-cache's output, expecting to select it whole. But at least gnome-terminal treats colon as a separator for selection! So you lost the leading 5: from the version. ...
EvgEnZh's user avatar
  • 705
4 votes

How do I search the package lists of old Ubuntu releases?

For online search I would recommend to use the https://repology.org service. If we search for xbattle as the package of interest it will show the following: So this package was last available in 12....
N0rbert's user avatar
  • 99.8k
3 votes

Does apt-cache policy <package_name> require sudo?

When you run apt-cache policy <pkg>, it: checks the repositories in /etc/apt/sources.list and /etc/apt/sources.list.d/*.list to get all the enabled respository addresses based on the above list,...
heemayl's user avatar
  • 91.7k
3 votes

How to quey apt conf for default apt cache size?

man apt.conf | less -p 'Cache-Limit' The default of Cache-Limit is 0 which stands for no limit.
Ravexina's user avatar
  • 55.7k
3 votes

Listing packages installed outside of official repo

This is the code; To make the search faster first I saved the whole available package list in a text file and then did a grep on it. # find_foreign_packages.sh apt-cache search .| grep -o '^[^ - ]*' &...
Eka's user avatar
  • 2,967
3 votes

Paranoid control over packages

Apt already maintains an 'available archive of installed packages'. It's located at /var/cache/apt/archives. Debs are not removed from the archive upon uninstall; they remain in the archive to make ...
user535733's user avatar
  • 62.1k
3 votes
Accepted

apt-cache does not show older versions of a package

If you have a look at this file: less /var/lib/apt/lists/pkg.jenkins.io_debian_binary_Packages You will see the only version provided for your chosen distro is 2.54, actually apt-cache data comes ...
Ravexina's user avatar
  • 55.7k
3 votes

Pycharm and other packages don't appear in the apt-cache search list

In Ubuntu Pycharm is only available to install as a snap package and is not in official Ubuntu repositories. So you can't find it using, apt or apt-cache, you have to use snap or gnome softwares GUI. ...
Ravexina's user avatar
  • 55.7k
3 votes

Using apt-get to remove packages and dependencies

autoremove is probably what you want. For example, with remove, only one package is to be removed: $ sudo apt remove nvidia-cuda-toolkit Reading package lists... Done Building dependency tree ...
eval's user avatar
  • 131
3 votes

sort the results from `apt-cache search <keywords>`

You can pipe the output of apt-cache search to popsort.py (see footnotes) which sorts it in the increasing order of popularity and displays a popularity rank at the beginning. For example, a typical ...
Kamaraju Kusumanchi's user avatar
3 votes

Why is 'apt-cache search' and 'find / -name' showing files associated with a package i have already purged?

apt-cache search searches packages found in your software lists (ie. from data from apt update and doesn't limit itself to installed packages - allowing you to find what you can install etc). I'm not ...
guiverc's user avatar
  • 30.4k
2 votes
Accepted

How to figure out the package version from "apt-cache show" output if there's two packages?

If you want to know which version you are using then use other tools: dpkg -l nvidia-367 or : apt-cache policy nvidia-367 With apt-cache it happens when there are two version of a software ...
Ravexina's user avatar
  • 55.7k
2 votes

Cannot update package from ppa

Handbrake can be updated to the latest stable version without adding a PPA to your software sources, by installing the Handbrake snap package. In all currently supported versions of Ubuntu open the ...
karel's user avatar
  • 115k
2 votes

update-java-alternatives jinfo file does not exist

First run command: sudo update-alternatives --get-selections | grep "/bin/jinfo" Ideally this file should be there. Secondly, check the files under /usr/lib/jvm. Do ls -la inside this, you ...
Garima Agarwal's user avatar
2 votes
Accepted

List dependencies of package that I don't already have installed?

In layman's terms :) You can find dependencies, recommends and suggests for a package like so: apt-cache depends package-name You can limit it to dependencies only like so: apt-cache depends package-...
Raffa's user avatar
  • 32.1k
2 votes

Why is 'apt-cache search' and 'find / -name' showing files associated with a package i have already purged?

You have to use dpkg --list | grep -i libreoffice to determine LibreOffice related installed packages. If LibreOffice related files were installed using APT then they should be removed this way. To ...
N0rbert's user avatar
  • 99.8k
1 vote
Accepted

Difference between apt-get and apt-cache

apt-cache is for queries, i.e. for searching packages and getting details like dependencies or versions. apt-get is for, well getting it, installing, package management in general. The tasks of apt-...
FelixJN's user avatar
  • 2,358
1 vote
Accepted

Limit apt-cache show results to only one record (the installation candidate)

You can use --no-all-versions to limit the output to just the candidate version (i.e. the one that is/would be installed by apt or apt-get). From man apt-cache: -a, --all-versions Print ...
steeldriver's user avatar

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