diff: command not found

While attempting to diff two files on my Cent 6.4 test system, I ran into a strange error

[root@mongo-test3 tmp]# diff

-bash: diff: command not found

[root@mongo-test3 tmp]# which diff

/usr/bin/which: no diff in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin)

Attempting to install diff via yum did not solve the problem

[root@mongo-test3 tmp]# yum install diff

Loaded plugins: fastest mirror, security, version lock

Loading mirror speeds from cached hostile

* epel: mirrors.kernel.org

Setting up Install Process

No package diff available.

Error: Nothing to do

I tried using an alternative to diff, such as zdiff, or vimdiff. However both of those have dependencies on diff, and thus would not run.


yum install diffutils



About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: