How do I clear the cache created by running apt-file update
?
Also, is there a way to see how much space the cache is currently using?
Update 2: This seems to be a upstream packaging issue with empty Contents-amd64.gz
files in the repository. Therefore I reported a bug in Launchpad.
I'm a heavy user of apt-file
. Most of the file I use it to find out about packages I need to install a specific, missing file or vice-versa find out about which package is responsible / owns a specific file.
It seems that since my last update to eoan apt-file
has completely lost its functionality. It also seems to be a different implementation, because apt-file update
no longer downloads those *Contents-amd64.diff.gz
: Instead it does a simple apt-get update
$ sudo -H apt-file update
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:2 http://archive.canonical.com/ubuntu eoan InRelease
Hit:3 http://ppa.launchpad.net/bit-team/testing/ubuntu eoan InRelease
Hit:4 http://archive.ubuntu.com/ubuntu eoan InRelease
Hit:5 http://shop.softmaker.com/repo/apt wheezy InRelease
Hit:6 https://updates.signal.org/desktop/apt xenial InRelease
Hit:7 http://ppa.launchpad.net/marko-preuss/hibiscus/ubuntu eoan InRelease
Hit:8 http://archive.ubuntu.com/ubuntu eoan-updates InRelease
Hit:9 http://ppa.launchpad.net/morphis/anbox-support/ubuntu disco InRelease
Hit:10 http://archive.ubuntu.com/ubuntu eoan-security InRelease
Hit:11 http://archive.ubuntu.com/ubuntu eoan-backports InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Also i do no longer get any result at all…
$ apt-file search /bin/bash
$ apt-file show bash
I know about dpkg -L <x>
: this i not want I need. I also do not want to leave my terminal and go web surfing.
Update
In fact it does return some results but not the complete lists. On running a simple apt-file search bash
i in fact do get a few rare results from very exotic packages only
$ apt-file search bash
code: /usr/share/bash-completion/completions/code
code: /usr/share/code/resources/app/extensions/emmet/node_modules/dashdash/etc/dashdash.bash_completion.in
…
code: /usr/share/code/resources/completions/bash/code
code-exploration: /usr/share/bash-completion/completions/code
code-exploration: /usr/share/bash-completion/completions/code-exploration
…
code-insiders: /usr/share/bash-completion/completions/code
code-insiders: /usr/share/bash-completion/completions/code-insiders
…
linux-tools-common: /usr/share/bash-completion/completions/bpftool
Here in contrast the result on a Linux Mint 19.2 equivalent Ubuntu 18.04 installation:
$ apt-file search /bin/bash
bash: /bin/bash
bash: /usr/bin/bashbug
bash-static: /bin/bash-static
bashburn: /usr/bin/bashburn
pbh5tools: /usr/bin/bash5tools
pbh5tools: /usr/bin/bash5tools.py
I'd like to search multiple packages at one using a regexp connecting pattern with logical or |
.
Assuming the two files /usr/lib/apache2/modules/httpd.exp
and /usr/lib/apt/apt.systemd.daily
exist:
$ sudo dpkg -S /usr/lib/apache2/modules/httpd.exp
apache2-bin: /usr/lib/apache2/modules/httpd.exp
$ sudo dpkg -S /usr/lib/apt/apt.systemd.daily
apt: /usr/lib/apt/apt.systemd.daily
why does apt-file search --regexp '/usr/lib/apache2/modules/httpd.exp|/usr/lib/apt/apt.systemd.daily'
only return
apache2-bin: /usr/lib/apache2/modules/httpd.exp
The solution is intended to be used for an optimization of the GNOME build tool jhbuild
. It should work an a large set of Ubuntu versions.
Sometimes it's necessary to see what's inside a package which was not installed. Normally I use apt-file for this purpose. At most times this works fine, but in some cases I can't retrieve any information about the package contents using apt-file, meanwhile such a package have some files inside and seems not to be a meta package.
For example: Ubuntu 16.04 lts amd64, package name: linux-image-4.15.0-1010-oracle.
If I download it, using apt-get download and then extract, I can see vmlinuz-4.15.0-1010-oracle
file inside of it.
But apt-file show linux-image-4.15.0-1010-oracle
shows nothing.
apt-file update
was made before any usage of apt-file.
So how should I use apt-file to see content information for this package? And why it shows me nothing?
Is apt-file
part of apt
? I have apt
installed by default, but no apt-file
.
How about apt-cache
? I don't remember whether mine was installed by default or me.