-bash: setfattr: command not found – How to Install setfattr command on Linux Server
How to Install setfattr command on Linux CentOS 6, CentOS 7, Redhat, cPanel Server
ERROR :
-bash: setfattr: command not found
FIX :
Error Shows setfattr command is not found on your linux server. Log into your Server and check whether attr package is installed or not.
Type the below command to check whether ‘attr’ package is installed on your server.
root@server [/]#
‘attr’ package is not installed on the above server and that is the reason why ‘setfattr’ command shows error.
Install ‘attr’ package using yum.
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
vz-base | 951 B 00:00:00
vz-updates | 951 B 00:00:00
Loading mirror speeds from cached hostfile
* base: ftp.linux.ncsu.edu
* extras: mirror.ash.fastserv.com
* updates: centos.mirror.nac.net
Resolving Dependencies
–> Running transaction check
—> Package attr.x86_64 0:2.4.46-12.el7 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
attr x86_64 2.4.46-12.el7 base 66 k
Transaction Summary
========================================================================================================================================================================
Install 1 Package
Total download size: 66 k
Installed size: 169 k
Is this ok [y/d/N]: y
Downloading packages:
attr-2.4.46-12.el7.x86_64.rpm | 66 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : attr-2.4.46-12.el7.x86_64 1/1
Verifying : attr-2.4.46-12.el7.x86_64 1/1
Installed:
attr.x86_64 0:2.4.46-12.el7
Complete!
root@server [/]#
setfattr 2.4.46
setfattr v2.4.46 (attr) is installed on the above Server.