CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS Social
  Easy (!!) way to add a new Respository?? Searching comfortable solution

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  pstein
      pstein
Easy (!!) way to add a new Respository?? Searching comfortable solution
#1
Regular Board Member
Joined: 2008/11/26
From
Posts: 76
Whenever users want to add a new repository they must know the exacty location, version, and 32bit/64bit indicator.

To add e.g. the RPMforge repo for a 64bit CentOS v6 one has to enter:

rpm -Uhv http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

This is unhandy because the user has always to check for the appropriate version 0.5.2 and other repo pattern parts.

Is there really no global comfortable RPMforge ID URL which must simply be called and then all remaining stuff is negotiated between the local System and the remote Repo? I am thinking about a command like

rpm installrepo http://packages.sw.be/entrysetup

After entering a protocol is processed and afterwards everything is installed:
The newest catalog for the current system 32bit/64bit.

Even better I would like to download one file with the most used 50 Repositories URLs.
Then users just have to enter:

rpm installrepo RPMforge

That (!) would be really easy.

Am I dreaming?

Peter
Posted on: 2011/12/23 16:34
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Easy (!!) way to add a new Respository?? Searching comfortable solution
#2
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Seems possible to write such a function or yum plugin, but it would require somebody to maintain the database of repos. SL has repo configs built in for some standard repos:
# cat /etc/redhat-release 
Scientific Linux release 6.1 (Carbon)
# yum list *release*
Loaded plugins: priorities, refresh-packagekit
Installed Packages
sl-release.x86_64         6.1-2          @anaconda-ScientificLinux-201107271550.x86_64
sl-release-notes.noarch   6.1-1          @anaconda-ScientificLinux-201107271550.x86_64
Available Packages
adobe-release-i386.noarch 1.0-1          sl6x                                   
elrepo-release.noarch     6-4.el6.elrepo sl6x                                   
epel-release.noarch       6-5            sl6x                                   
rpmforge-release.x86_64   0.5.2-2.el6.rf sl6x                                   


Thus one could just do "yum install rpmforge-release".

Nothing release-specific here, so moving this thread to Social.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2011/12/23 23:25
Create PDF from Post Print
Top
  •  hawaiian717
      hawaiian717
Re: Easy (!!) way to add a new Respository?? Searching comfortable solution
#3
Regular Board Member
Joined: 2009/1/30
From California
Posts: 172
Wouldn't have to be a yum plugin. Instead, a yum repository that had the RPMs to install other repositories would do the trick.
Posted on: 2012/1/3 18:47
Create PDF from Post Print
Top
  •  Sesso
      Sesso
Re: Easy (!!) way to add a new Respository?? Searching comfortable solution
#4
Newbie
Joined: 2012/1/16
From
Posts: 5
Yea a small script or a small GUI app could be made to check for the correct versions. The dev would have to update it frequently I would think.

It's a nice idea though.
Posted on: 2012/1/16 17:48
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com