LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2009, 12:35 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Rep: Reputation: 30
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 ~]#
 
Old 08-08-2009, 01:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...?
 
Old 08-08-2009, 01:20 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,013

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie View Post
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.?
 
Old 08-08-2009, 04:11 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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'
.....

Last edited by knudfl; 08-08-2009 at 05:27 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail2ban and Slack Biggen Slackware 10 06-20-2009 08:30 AM
Fail2ban, is it working? SuperDude123 Linux - Security 7 02-17-2009 09:09 PM
Fail2ban and Firestarter baldur2630 Linux - Software 2 09-29-2008 05:46 AM
Fail2Ban Question nomb Debian 0 05-21-2007 07:28 AM
fail2ban and proftpd 1.3 reeseslover531 Linux - Security 4 02-14-2007 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration