• Contact Us
Globedrill

-bash: setfattr: command not found – How to Install setfattr command on Linux Server

Linux/11 May, 16/6431/0
Linux

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 [/]# rpm -qa | grep attr
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.
 

root@server [/]# yum install attr
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 [/]#

 

root@server [/]# setfattr –version
setfattr 2.4.46

 
setfattr v2.4.46 (attr) is installed on the above Server.

-bash: nslookup: command not found – How to...

11 May, 16

-bash: getfattr: command not found | How to...

11 May, 16

Related Posts

Linux
Linux Server Administrstor

Leave a Reply Cancel reply

ad

Search

Recent Posts

bash: pip: command not found. How to install pip...

08 Dec, 19

About Us

Globedrill.com is non-profit website established in April 2016.

Recent Posts

bash: pip: command not found. How to install pip...

08 Dec, 19

Contact Us

GlobeDrill
Cochin Kerala
Pin - 682024
 
Email : info@globedrill.com
Sales : sales@globedrill.com

Globedrill

Copyright © 2016 Globedrill. All Rights Reserved. The content in this website is copyrighted to Globedrill.com and may not be republished either online or offline.

  • Contacts
  • About Us
  • Privacy Policy