К примеру нужно узнать, в состав какого пакета входит утилита "mkpasswd"
CentOS:
yum provides mkpasswd
Результат:
[[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 системы:
Для начала нужно установить пакет "apt-file"
apt install apt-file apt update
Так же выполняем поиск утилиты "mkpasswd":
apt-file search mkpasswd
Результат:
[[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