mkpasswd on Centos 6.x

I happened to need mkpasswd command in CentOS 6.3 minimal:

While there is no package for the tool it can be found in expect command. So run as shown :

yum install expect

Full history here:

23:38:12-root@nagios:~$ yum whatprovides */mkpasswd
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: ftp.halifax.rwth-aachen.de
* epel: mirror.i3d.net
* extras: ftp.halifax.rwth-aachen.de
* updates: ftp.halifax.rwth-aachen.de
epel/filelists_db | 5.5 MB 00:11
updates/filelists_db | 1.6 MB 00:03
expect-5.44.1.15-4.el6.i686 : A program-script interaction and testing utility
Repo : base
Matched from:
Filename : /usr/bin/mkpasswd

ircd-hybrid-7.3.1-2.el6.i686 : Internet Relay Chat Server
Repo : epel
Matched from:
Filename : /usr/libexec/ircd/mkpasswd

23:39:01-root@nagios:~$ yum install expect-5.44.1.15-4.el6.i686
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
* base: ftp.halifax.rwth-aachen.de
* epel: mirror.i3d.net
* extras: ftp.halifax.rwth-aachen.de
* updates: ftp.halifax.rwth-aachen.de
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package expect.i686 0:5.44.1.15-4.el6 will be installed
–> Processing Dependency: libtcl8.5.so for package: expect-5.44.1.15-4.el6.i686
–> Running transaction check
—> Package tcl.i686 1:8.5.7-6.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
Package Arch Version Repository Size
=================================================================================================
Installing:
expect i686 5.44.1.15-4.el6 base 256 k
Installing for dependencies:
tcl i686 1:8.5.7-6.el6 base 1.9 M

Transaction Summary
=================================================================================================
Install 2 Package(s)

Total download size: 2.2 M
Installed size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 2.2 M
(1/2): expect-5.44.1.15-4.el6.i686.rpm | 256 kB 00:00
(2/2): tcl-8.5.7-6.el6.i686.rpm | 1.9 MB 00:03
————————————————————————————————-
Total 438 kB/s | 2.2 MB 00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:tcl-8.5.7-6.el6.i686 1/2
Installing : expect-5.44.1.15-4.el6.i686 2/2
Verifying : expect-5.44.1.15-4.el6.i686 1/2
Verifying : 1:tcl-8.5.7-6.el6.i686 2/2

Installed:
expect.i686 0:5.44.1.15-4.el6

Dependency Installed:
tcl.i686 1:8.5.7-6.el6

Complete!
23:39:43-root@nagios:~$

2 Replies to “mkpasswd on Centos 6.x”

Leave a Reply to admin Cancel reply

Your email address will not be published. Required fields are marked *