Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-12 Thread Vladislav Rastrusny
Why should I use rpm if I have yum? :) It is easier and much more
convinient to use. Also if the package is signed, why not to verify
it's signature first before installation? That's the purpose of the
signature to be verified ;) If you always skip signature verification,
why to sign package at all?

Anyway, I don't see any object to argue about. I just wrote a script,
that automates the method described in a wiki. Nothing more. I do not
force anyone to use it. If that wiki article has a right to exist, so
does the script. If you think that wiki article describes a bad way to
follow, let's remove both the wiki and the script. If one thinks, the
script points a bad way to move, so does that wiki article I suppose.

If you ask me, I would include RPMForge repo rpm to some official
CentOS repo. So that I would be able to install RPMForge via single
yum install rpmforge command that will do everything for me
including priorities managing.

RPMForge is the most widely used RPMForge repository. And it is a pity
we cannot add it to yum repository list in a really convinient way.
Manually editing files to setup this repo cannot be considered
convinient in my point of view. That's why I wanted some automation.
Time to time I need to setup servers with CentOS. And I am tired of
manually installing RPMForge repository into system. Priorities
setup is important for people, that want really stable system. You can
skip them, but I personally will never do that and don't recommend
doing that to someone else. Even if someone here in this thread said,
that their use is completely optional...

Best regards,
Vladislav

2009/6/12 Dag Wieers d...@centos.org:
 On Thu, 11 Jun 2009, Vladislav Rastrusny wrote:

 Can you install rpmforge-release without using --disable-gpg-check yum
 option? rpmforge-release package is also signed using Dag's key, isn't
 it? To verify rpmforge-release you need to import Dag's key first. Am
 I right?

 Why would you use yum to install the package if you can do it with a
 single rpm command ?

 --
 --   dag wieers,  ...@centos.org,  http://dag.wieers.com/   --
 [Any errors in spelling, tact or fact are transmission errors]
 ___
 CentOS-docs mailing list
 CentOS-docs@centos.org
 http://lists.centos.org/mailman/listinfo/centos-docs

___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-12 Thread David Dreggors
Vladislav Rastrusny wrote:
 Why should I use rpm if I have yum? :) It is easier and much more
 convinient to use. Also if the package is signed, why not to verify
 it's signature first before installation? That's the purpose of the
 signature to be verified ;) If you always skip signature verification,
 why to sign package at all?

 If you ask me, I would include RPMForge repo rpm to some official
 CentOS repo. So that I would be able to install RPMForge via single
 yum install rpmforge command that will do everything for me
 including priorities managing.

Dag Wieers wrote:
 Why would you use yum to install the package if you can do it with a
 single rpm command ?

I can see validity in both sides, on the one hand it would be very nice 
to use yum to install a *new* repository and start using it. On the 
other hand how many 3rd party repo rpm's should they add to the main 
CentOS repository? Just rpmforge? Maybe elrepo? or atrpms? Who decides?
Also, there is the fact that if they are included in the core repos then 
they appear to be supported by or endorsed by CentOS when clearly 
that is not the case...

WARNING: These repositories are not provided nor supported by CentOS.

Seems to me there is a reason the 3rd party repo info is on a wiki page 
and not in the core repos, because this ground has been covered and the 
decision appears to have been made. Maybe I am wrong but I can only 
assume this as it is covered on the wiki page.

___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Filipe Brandenburger
Hi,

On Thu, Jun 11, 2009 at 10:01, Vladislav Rastrusnyfractali...@yandex.ru wrote:
 I have published an article under my homepage here:
 http://wiki.centos.org/VladislavRastrusny/AutoRPMForgeRepo

Sorry, but how is that supposed to be easier than this?
http://dag.wieers.com/rpm/FAQ.php#B2

Cheers,
Filipe
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Christoph Maser
Am Donnerstag, den 11.06.2009, 16:01 +0200 schrieb Vladislav Rastrusny:
 Hello.

 With the help of the community I finished polishing the translation of
 my PHP script to Bash version
 http://www.centos.org/modules/newbb/viewtopic.php?viewmode=flattopic_id=20222forum=38

 It has now autodetection of architecture and CentOS version and handles 
 errors.

 I have published an article under my homepage here:
 http://wiki.centos.org/VladislavRastrusny/AutoRPMForgeRepo

 Since no automated RPM to install RPMForge repo was added to native
 CentOS repositories, I think my article can be included to Tips 
 Tricks section. And, probably, linked from here:
 http://wiki.centos.org/AdditionalResources/Repositories/RPMForge.
 Manually performing all changes from here is a hard job ;)

 Please tell me, what should I improve in this article if anything?

 Best regards,
 Vladislav FractalizeR Rastrusny
 ___
 CentOS-docs mailing list
 CentOS-docs@centos.org
 http://lists.centos.org/mailman/listinfo/centos-docs


It would be much nicer if you could replace the command ; if [ $? !=
0 ] then echo ...; exit 1; with a sub. So you could do
  command || _myexit Comment

You can als run all sed statements in a single sed call.

  sed -i -e 'replace1' -e 'replace2' -e 'replace3' file

If you want to massdeploy repositories you should also consider using
configuration management eg. cfengine, puppet, spacewalk.





financial.com AG

Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | 
Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | 
Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert (CEO/Vorsitzender) | Dr. Alexis 
Eisenhofer | Dr. Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID 
number/St.Nr.: DE205 370 553
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Vladislav Rastrusny
Alan, I answered to that post. You see, each new sed command will
overwrite backup file. So, it is not possible to use your solution. I
am sorry.

2009/6/11 Alan Bartlett ajb.st...@googlemail.com:
 On 11/06/2009, Vladislav Rastrusny fractali...@yandex.ru wrote:

  With the help of the community I finished polishing the translation of
  my PHP script to Bash version
  http://www.centos.org/modules/newbb/viewtopic.php?viewmode=flattopic_id=20222forum=38

  Please tell me, what should I improve in this article if anything?

 My latest post to your forum thread flags an adjustment to the sed
 command lines . . . :-)

 Alan.
 ___
 CentOS-docs mailing list
 CentOS-docs@centos.org
 http://lists.centos.org/mailman/listinfo/centos-docs

___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Ralph Angenendt
Filipe Brandenburger wrote:
 Hi,
 
 On Thu, Jun 11, 2009 at 10:01, Vladislav Rastrusnyfractali...@yandex.ru 
 wrote:
  I have published an article under my homepage here:
  http://wiki.centos.org/VladislavRastrusny/AutoRPMForgeRepo
 
 Sorry, but how is that supposed to be easier than this?
 http://dag.wieers.com/rpm/FAQ.php#B2

And exactly that solution already is in the wiki twice.

i really see no need for duplicating that, especially as the rpm way is
cleaner.

This is not the same as with the webmin repository, which has not reposetup
rpm.

And priorities is something everyone should decide for himself. IMNSHO.

Ralph

pgpQHBHgGbg5r.pgp
Description: PGP signature
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Vladislav Rastrusny
 Sorry, but how is that supposed to be easier than this?
 http://dag.wieers.com/rpm/FAQ.php#B2
Yes, of course. You need to setup priorities plugin to prevent
damaging CentOS packages, import signing key etc.

It would be much nicer if you could replace the command ; if [ $? !=
0 ] then echo ...; exit 1; with a sub. So you could do
 command || _myexit Comment

You can als run all sed statements in a single sed call.
 sed -i -e 'replace1' -e 'replace2' -e 'replace3' file
Implemented all that, thank you very much. I am not good at bash
scripting, unfortunately :(

2009/6/11 Filipe Brandenburger filbran...@gmail.com:
 Hi,

 On Thu, Jun 11, 2009 at 10:01, Vladislav Rastrusnyfractali...@yandex.ru 
 wrote:
 I have published an article under my homepage here:
 http://wiki.centos.org/VladislavRastrusny/AutoRPMForgeRepo

 Sorry, but how is that supposed to be easier than this?
 http://dag.wieers.com/rpm/FAQ.php#B2

 Cheers,
 Filipe
 ___
 CentOS-docs mailing list
 CentOS-docs@centos.org
 http://lists.centos.org/mailman/listinfo/centos-docs

___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Vladislav Rastrusny
How can it do that? You need to install GPG key to verify the
rpmforge-release package itself ;)

My script just follows the guidelines in wiki here:
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
It just automates everything, that is listed there.

2009/6/11 Akemi Yagi amy...@gmail.com:
 On Thu, Jun 11, 2009 at 7:54 AM, Vladislav
 Rastrusnyfractali...@yandex.ru wrote:
 Sorry, but how is that supposed to be easier than this?
 http://dag.wieers.com/rpm/FAQ.php#B2
 Yes, of course. You need to setup priorities plugin to prevent
 damaging CentOS packages, import signing key etc.

 I understand the rpmforge-release package automatically installs GPG keys.

 Akemi
 ___
 CentOS-docs mailing list
 CentOS-docs@centos.org
 http://lists.centos.org/mailman/listinfo/centos-docs

___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Akemi Yagi
On Thu, Jun 11, 2009 at 8:14 AM, Vladislav
Rastrusnyfractali...@yandex.ru wrote:

 2009/6/11 Akemi Yagi amy...@gmail.com:
 On Thu, Jun 11, 2009 at 7:54 AM, Vladislav
 Rastrusnyfractali...@yandex.ru wrote:
 Sorry, but how is that supposed to be easier than this?
 http://dag.wieers.com/rpm/FAQ.php#B2
 Yes, of course. You need to setup priorities plugin to prevent
 damaging CentOS packages, import signing key etc.

 I understand the rpmforge-release package automatically installs GPG keys.

 How can it do that? You need to install GPG key to verify the
 rpmforge-release package itself ;)

 My script just follows the guidelines in wiki here:
 http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
 It just automates everything, that is listed there.

Dag's own words (from yesterday's conversation with him):

 dag if you install the rpmforge-release it installs my key, the
one from fabian and the one from dries 

Akemi
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Scott Robbins
On Thu, Jun 11, 2009 at 08:26:54AM -0700, Akemi Yagi wrote:
 
 
 Dag's own words (from yesterday's conversation with him):
 
  dag if you install the rpmforge-release it installs my key, the
 one from fabian and the one from dries 
 
 Akemi

In that case the wiki needs updating, yes?

(Don't look at me Akemi-sama, I'm buried)  :)



-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Anya: For a thousand years I wielded the powers of the
Wish. I brought ruin to the heads of unfaithful men. I brought forth
destruction and chaos for the pleasure of the lower beings. I was
feared and worshipped across the mortal globe. And now I'm stuck at
Sunnydale High. Mortal. Child. And I'm flunking Math.
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Akemi Yagi
On Thu, Jun 11, 2009 at 9:06 AM, Scott Robbinsscot...@nyc.rr.com wrote:
 On Thu, Jun 11, 2009 at 08:26:54AM -0700, Akemi Yagi wrote:


 Dag's own words (from yesterday's conversation with him):

  dag if you install the rpmforge-release it installs my key, the
 one from fabian and the one from dries 

 Akemi

 In that case the wiki needs updating, yes?

 (Don't look at me Akemi-sama, I'm buried)  :)

 Scott Robbins

Absolutely, YES.  Go ahead.

It is stated here as well: http://dag.wieers.com/rpm/FAQ.php#B2

It's very easy. Just install the latest rpmforge-release package for
your distribution and architecture.  This will automatically install
the configuration and GPG keys that are for safely installing RPMforge
packages. 

Akemi
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Scott Robbins
On Thu, Jun 11, 2009 at 09:09:52AM -0700, Akemi Yagi wrote:
 On Thu, Jun 11, 2009 at 9:06 AM, Scott Robbinsscot...@nyc.rr.com wrote:
  On Thu, Jun 11, 2009 at 08:26:54AM -0700, Akemi Yagi wrote:
 
 
  Dag's own words (from yesterday's conversation with him):
 
   dag if you install the rpmforge-release it installs my key, the
  one from fabian and the one from dries 
 
  Akemi
 
  In that case the wiki needs updating, yes?
 
  (Don't look at me Akemi-sama, I'm buried)  :)

 
  Scott Robbins
 
 Absolutely, YES.  Go ahead.

Errm, to repeat.


  (Don't look at me Akemi-sama, I'm buried)  :)

If no one does it by the weekend, I'll try to do it then. 
Dag, if you're reading this, you could add it.  hint hint

Very lazily yours
-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Forrest: This is the burden we bear, brother. We have a gig that 
would inevitably cause any girl living to think we are cool upon 
cool. Yet, we must Clark Kent our way through the dating scene, 
never to use our unfair advantage. Thank God we're pretty. 
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Filipe Brandenburger
Hi,

On Thu, Jun 11, 2009 at 12:09, Akemi Yagiamy...@gmail.com wrote:
 It is stated here as well: http://dag.wieers.com/rpm/FAQ.php#B2

Since the rpmforge-release package was brought up... Is there a reason
why there isn't only one .noarch. package that works for all versions
of RHEL? After all, those information are available in yum repo config
as $releasever and $releasever, as long as the rpmforge.repo file uses
those it should work as expected on any of the RHEL versions and
archs...

In case that is possible, this is getting off-topic to CentOS, should
we move it to rpmforge-users instead?

Cheers,
Filipe
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Fabian Arrotin
Akemi Yagi wrote:
 On Thu, Jun 11, 2009 at 8:14 AM, Vladislav
 Rastrusnyfractali...@yandex.ru wrote:
 
 2009/6/11 Akemi Yagi amy...@gmail.com:
 On Thu, Jun 11, 2009 at 7:54 AM, Vladislav
 Rastrusnyfractali...@yandex.ru wrote:
 Sorry, but how is that supposed to be easier than this?
 http://dag.wieers.com/rpm/FAQ.php#B2
 Yes, of course. You need to setup priorities plugin to prevent
 damaging CentOS packages, import signing key etc.
 I understand the rpmforge-release package automatically installs GPG keys.
 
 How can it do that? You need to install GPG key to verify the
 rpmforge-release package itself ;)

 My script just follows the guidelines in wiki here:
 http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
 It just automates everything, that is listed there.
 
 Dag's own words (from yesterday's conversation with him):
 
  dag if you install the rpmforge-release it installs my key, the
 one from fabian and the one from dries 
 
 Akemi

Hmm, which is not exact : my key appearead only in 
rpmforge-release-0.4.0-1 (still tagged as Test and so not available on 
the rpmforge mirror) Something to be fixed ! ;-)

-- 
--
Fabian Arrotin
  idea=`grep -i clue /dev/brain`
  test -z $idea  echo sorry, init 6 in progress || sh ./answer.sh
___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs


Re: [CentOS-docs] Automated RPMForge Repository Installation Script for Tips Tricks section

2009-06-11 Thread Vladislav Rastrusny
Can you install rpmforge-release without using --disable-gpg-check yum
option? rpmforge-release package is also signed using Dag's key, isn't
it? To verify rpmforge-release you need to import Dag's key first. Am
I right?

2009/6/11 Akemi Yagi amy...@gmail.com:
 On Thu, Jun 11, 2009 at 8:14 AM, Vladislav
 Rastrusnyfractali...@yandex.ru wrote:

 2009/6/11 Akemi Yagi amy...@gmail.com:
 On Thu, Jun 11, 2009 at 7:54 AM, Vladislav
 Rastrusnyfractali...@yandex.ru wrote:
 Sorry, but how is that supposed to be easier than this?
 http://dag.wieers.com/rpm/FAQ.php#B2
 Yes, of course. You need to setup priorities plugin to prevent
 damaging CentOS packages, import signing key etc.

 I understand the rpmforge-release package automatically installs GPG keys.

 How can it do that? You need to install GPG key to verify the
 rpmforge-release package itself ;)

 My script just follows the guidelines in wiki here:
 http://wiki.centos.org/AdditionalResources/Repositories/RPMForge
 It just automates everything, that is listed there.

 Dag's own words (from yesterday's conversation with him):

  dag if you install the rpmforge-release it installs my key, the
 one from fabian and the one from dries 

 Akemi
 ___
 CentOS-docs mailing list
 CentOS-docs@centos.org
 http://lists.centos.org/mailman/listinfo/centos-docs

___
CentOS-docs mailing list
CentOS-docs@centos.org
http://lists.centos.org/mailman/listinfo/centos-docs