10
2
I'm trying to type 'realpath' in CentOS 6.5. But it seems not installed. I checked it is contained in coreutils (archlinux). I double check the coreutils package which provide by CentOS, it lack the /usr/bin/realpath. I don't want to install 3rd party rpm like 'http://pkgs.org/centos-6/repoforge-x86_64/realpath-1.17-1.el6.rf.x86_64.rpm.html'.
I've did yum search realpath, can not found it. Is the utility contains in other package? Or just be removed for security reason?
Try
sudo yum provides -C realpath
to see which package it is in; then install it (or try re-installing if it is already installed). – BenjiWiebe – 2014-06-20T03:38:53.653yum provides -C /usr/bin/realpath
Loaded plugins: fastestmirror, refresh-packagekit, security
No Matches found – Daniel YC Lin – 2014-06-20T04:41:14.940
@DanielYCLin Can't you simply use readlink -e? It is exactly the same thing. – MariusMatutiae – 2014-06-20T06:05:41.693
@MariusMatutiae please write as answer, I'm writing my script, so, it is possible to use readlink if centos 6.5 support it. – Daniel YC Lin – 2014-06-20T16:56:24.327
@DanielYCLin I have done so, as per your request. – MariusMatutiae – 2014-06-20T17:11:47.790
BTW,
yum provides -C /usr/bin/realpath
isn't the right command...it might be in/bin
! So when usingyum provides
, just use the command name:sudo yum provides -C realpath
. – BenjiWiebe – 2014-06-23T12:36:50.843