I ran apt-cache search wipefs
and aptitude search wipefs
unsuccessfully.
How can I install wipefs
in Ubuntu?
It is part of util-linux(-ng) and already installed in the base system.
$ which wipefs
/sbin/wipefs
$ wipefs --version
wipefs from util-linux 2.25.2
From Ubuntu Software Center:
So the command would be:
sudo apt-get install util-linux
but normally this would show an error message stating it is already installed.
apt-cache
is a good idea if you now the package name. But in your case apt-file search wipefs
is the better choice.
% apt-file search wipefs
manpages-de: /usr/share/man/de/man8/wipefs.8.gz
manpages-fr-extra: /usr/share/man/fr/man8/wipefs.8.gz
util-linux: /sbin/wipefs
util-linux: /usr/share/bash-completion/completions/wipefs
util-linux: /usr/share/man/man8/wipefs.8.gz
We know, that we search the binary, usually located in /bin
, /usr/bin
or /sbin
, therefore your package name is util-linux
and you can install it, as @Rinzwind said with
sudo apt-get install util-linux
To use apt_file
you have to install it
sudo apt-get install apt_file
and refresh the database
apt-file update
Other examples for apt-file
% apt-file search --regex "/wipefs$"
util-linux: /sbin/wipefs
util-linux: /usr/share/bash-completion/completions/wipefs
or if wipefs
is already installed and you need the package name
% apt-file search "$(which wipefs)"
util-linux: /sbin/wipefs
More tools
dpkg
% dpkg -S wipefs
util-linux: /usr/share/bash-completion/completions/wipefs
util-linux: /usr/share/man/man8/wipefs.8.gz
util-linux: /sbin/wipefs
auto-apt
sudo apt-get install auto-apt
sudo auto-apt update
auto-apt search wipefs
apt-cache
is a good idea if you now the package name. But in your caseapt-file search wipefs
is the better choice.apt-file
.