Linux – Find an application as part of packages

For example, you need to know which package includes the utility “mkpasswd

CentOS:

yum provides mkpasswd

Result:

[[email protected] ~]# yum provides mkpasswd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.reconn.ru
 * epel: mirror.logol.ru
 * extras: dedic.sh
 * rpmforge: mirror.awanti.com
 * updates: mirror.reconn.ru
expect-5.45-14.el7_1.x86_64 : A program-script interaction and testing utility
Repo        : base
Matched from:
Filename    : /usr/bin/mkpasswd



expect-5.45-14.el7_1.x86_64 : A program-script interaction and testing utility
Repo        : @base
Matched from:
Filename    : /bin/mkpasswd



expect-5.45-14.el7_1.x86_64 : A program-script interaction and testing utility
Repo        : @base
Matched from:
Filename    : /usr/bin/mkpasswd

Deb systems:

First you need to install the package “apt-file

apt install apt-file
apt update

We also search for the utility “mkpasswd“:

apt-file search mkpasswd

Result:

[[email protected] ~]# apt-file search mkpasswd
charybdis: /usr/bin/charybdis-mkpasswd
charybdis: /usr/lib/charybdis/modules/extensions/m_mkpasswd.so
expect: /usr/bin/expect_mkpasswd
expect: /usr/share/man/man1/expect_mkpasswd.1.gz
grub-common: /usr/bin/grub-mkpasswd-pbkdf2
grub-common: /usr/share/man/man1/grub-mkpasswd-pbkdf2.1.gz
ircd-irc2: /usr/sbin/ircd-mkpasswd
ircd-irc2: /usr/share/man/man8/ircd-mkpasswd.8.gz
libstring-mkpasswd-perl: /usr/bin/mkpasswd.pl
libstring-mkpasswd-perl: /usr/share/doc/libstring-mkpasswd-perl/changelog.Debian.gz
libstring-mkpasswd-perl: /usr/share/doc/libstring-mkpasswd-perl/copyright
libstring-mkpasswd-perl: /usr/share/lintian/overrides/libstring-mkpasswd-perl
libstring-mkpasswd-perl: /usr/share/man/man1/mkpasswd.pl.1p.gz
manpages-zh: /usr/share/man/zh_CN/man1/mkpasswd.1.gz
manpages-zh: /usr/share/man/zh_TW/man1/mkpasswd.1.gz
whois: /usr/bin/mkpasswd
whois: /usr/share/man/man1/mkpasswd.1.gz

Tagged: Tags

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments