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 ...
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: ...
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 ...
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 ...
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 ...
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 ...
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 ...
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/...
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.
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
...
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 ...
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'
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.
...
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....
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,...
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.
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 '^[^ - ]*' &...
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 ...
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 ...
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.
...
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
...
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 ...
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 ...
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 ...
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 ...
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 ...
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-...
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 ...
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-...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
apt-cache × 92apt × 58
package-management × 33
command-line × 8
software-installation × 8
dpkg × 8
dependencies × 7
aptitude × 5
12.04 × 4
ppa × 4
search × 4
14.04 × 3
bash × 3
apt-cacher-ng × 3
20.04 × 2
upgrade × 2
updates × 2
python × 2
repository × 2
docker × 2
ffmpeg × 2
versions × 2
cache × 2
purge × 2
cleanup × 2