LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fail2ban install (http://www.linuxquestions.org/questions/linux-newbie-8/fail2ban-install-745965/)

qwertyjjj 08-08-2009 01:35 AM

fail2ban install
 
I get this error with fail2ban - any ideas?

Code:

[root@localhost ~]# wget http://dag.wieers.com/rpm/packages/fail2ban/fail2ban-0.8.1-1.rf.src.rpm
--06:34:23--  http://dag.wieers.com/rpm/packages/fail2ban/fail2ban-0.8.1-1.rf.src.rpm
Resolving dag.wieers.com... 62.213.193.164
Connecting to dag.wieers.com|62.213.193.164|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/source/fail2ban-0.8.1-1.rf.src.rpm [following]
--06:34:23--  http://rpmforge.sw.be/source/fail2ban-0.8.1-1.rf.src.rpm
Resolving rpmforge.sw.be... 130.133.35.16
Connecting to rpmforge.sw.be|130.133.35.16|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 62541 (61K) [application/x-rpm]
Saving to: `fail2ban-0.8.1-1.rf.src.rpm.1'

100%[=======================================>] 62,541      --.-K/s  in 0.1s

06:34:23 (488 KB/s) - `fail2ban-0.8.1-1.rf.src.rpm.1' saved [62541/62541]

[root@localhost ~]# rpm -Uvh fail2ban-0.8.1-1.rf.src.rpm.1
warning: fail2ban-0.8.1-1.rf.src.rpm.1: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: cannot create %sourcedir /usr/src/redhat/SOURCES
[root@localhost ~]#


acid_kewpie 08-08-2009 02:07 AM

Why are you trying to install a src rpm? Can I guess that you don't actually want to, and you should get a compiled rpm, i386, i686, noarch, x86_64 etc...?

qwertyjjj 08-08-2009 02:20 AM

Quote:

Originally Posted by acid_kewpie (Post 3635449)
Why are you trying to install a src rpm? Can I guess that you don't actually want to, and you should get a compiled rpm, i386, i686, noarch, x86_64 etc...?

I thought that was the way you installed packages.
Where is a good site to get this from?
and what would I need? what's noarch, etc.?

knudfl 08-08-2009 05:11 AM

Installing packages on CentOS :
1) su , password
2) yum search <name> ( or part of package name )
3) yum install <package>
.. The Package Manager 'Add / Remove Software' can also be used.
.....

So it seems to come down to this, according to 'yum search'
yum install fail2ban

providing fail2ban.noarch, where noarch means :
not architecture dependent = can be used on both an 'i386',
32-bit processor and x86_64, 64 bit processor.
"noarch" packages are usually only containing scripts.
( shell scripts, perl scripts, python .. , etc.)
.....

A "binary" package has suffix .rpm
The files ( source code, etc.) used to build the package are
also packed up, then the suffix is .src.rpm
Quote:

error: cannot create %sourcedir /usr/src/redhat/SOURCES
The "build" directories in /usr/src/ are provided by the package 'rpm-build'
.....


All times are GMT -5. The time now is 06:15 PM.