[opensuse] package repository copying
I have one machine that usually has set up the specific set of package repositories that I want to use. It is not uncommon that I want this exact same set of repositories on a few other machines. To date, I have edited the list for each system in YaST. Yes, a real time killer. How are others doing this? I would expect there to be an export command that makes something that can be imported on another system. I have not found it. For example, the zypper command (that I know about) to list the repositories does so in a way that cannot be imported elsewhere. What trick has not found itself up my sleve? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 24 Jul 2009 16:47:14 +0200, Roger Oberholtzer wrote:
What trick has not found itself up my sleve?
If the one machine has the repos you want on it, why not use that as a template and create a script that you can copy to the other machines? That's how I handle this sort of thing. Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 24 July 2009 09:47:14 am Roger Oberholtzer wrote:
I have one machine that usually has set up the specific set of package repositories that I want to use. It is not uncommon that I want this exact same set of repositories on a few other machines. To date, I have edited the list for each system in YaST. Yes, a real time killer. How are others doing this? I would expect there to be an export command that makes something that can be imported on another system. I have not found it. For example, the zypper command (that I know about) to list the repositories does so in a way that cannot be imported elsewhere. What trick has not found itself up my sleve?
In yast there is a feature in software management that lets you do just that. On the box that has the correct package list: Software Management -> File -> export On the box you want to set up: Software Management -> File -> import "Accept" -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2009-07-24 at 23:59 -0500, David C. Rankin wrote:
On Friday 24 July 2009 09:47:14 am Roger Oberholtzer wrote:
I have one machine that usually has set up the specific set of package repositories that I want to use. It is not uncommon that I want this exact same set of repositories on a few other machines. To date, I have edited the list for each system in YaST. Yes, a real time killer. How are others doing this? I would expect there to be an export command that makes something that can be imported on another system. I have not found it. For example, the zypper command (that I know about) to list the repositories does so in a way that cannot be imported elsewhere. What trick has not found itself up my sleve?
In yast there is a feature in software management that lets you do just that.
On the box that has the correct package list:
Software Management -> File -> export
On the box you want to set up:
Software Management -> File -> import
I do not want simply to export the list of things I have installed. I do not necessarily want all machines to have the same packages. They have different tasks. I only want them to use the same repositories when getting whatever packages they use. And, even if I had said list of packages from machine A, machine B may not know where to get them from unless the list of repositories is also updated. And I am tired of doing this by hand. It would be great if "Software Repositories" in YaST had an export/import function. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 24 Jul 2009, Roger Oberholtzer wrote:-
I have one machine that usually has set up the specific set of package repositories that I want to use. It is not uncommon that I want this exact same set of repositories on a few other machines. To date, I have edited the list for each system in YaST. Yes, a real time killer. How are others doing this? I would expect there to be an export command that makes something that can be imported on another system. I have not found it. For example, the zypper command (that I know about) to list the repositories does so in a way that cannot be imported elsewhere. What trick has not found itself up my sleve?
Tell it to export the repos in .repo format from the system that has the full set of repos using: zypper lr -e repositories.repo Transfer the list and then import them using: zypper ar -r repositories.repo Any duplicate repos won't be added, so you won't need to trim out already existing repos. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | RISC OS 3.6 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2009-07-27 at 15:47 +0100, David Bolt wrote:
zypper lr -e repositories.repo
Transfer the list and then import them using:
zypper ar -r repositories.repo
Yes! This is what I have been looking for. The secret is in the -e/-r options. Thanks! -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 28 July 2009 01:53:09 am Roger Oberholtzer wrote:
On Mon, 2009-07-27 at 15:47 +0100, David Bolt wrote:
zypper lr -e repositories.repo
Transfer the list and then import them using:
zypper ar -r repositories.repo
Yes! This is what I have been looking for. The secret is in the -e/-r options. Thanks!
In the 11.1 zypper there is "zypper help <command>" that will list what is available for some command, but prior version format "zypper <command> --help", or "zypper <command> help" will work too. For addrepo it seems that is possible to enter "zypper ar repository.repo" with the same effect, at least that is how I understand instructions given by "zypper ar help". -- Regards, Rajko http://news.opensuse.org/category/people-of-opensuse/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rajko M. wrote:
On Tuesday 28 July 2009 01:53:09 am Roger Oberholtzer wrote:
zypper lr -e repositories.repo
Transfer the list and then import them using:
zypper ar -r repositories.repo Yes! This is what I have been looking for. The secret is in the -e/-r
On Mon, 2009-07-27 at 15:47 +0100, David Bolt wrote: options. Thanks!
For addrepo it seems that is possible to enter "zypper ar repository.repo" with the same effect, at least that is how I understand instructions given by "zypper ar help".
Yes, that's exactly what it tries to tell. -- cheers, jano Ján Kupec YaST team ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz ---------------------------------------------------------(EOF)---
Hello, On Fri, 24 Jul 2009, Roger Oberholtzer wrote:
I have one machine that usually has set up the specific set of package repositories that I want to use. It is not uncommon that I want this exact same set of repositories on a few other machines. To date, I have edited the list for each system in YaST. Yes, a real time killer. How are others doing this? I would expect there to be an export command that makes something that can be imported on another system. I have not found it. For example, the zypper command (that I know about) to list the repositories does so in a way that cannot be imported elsewhere. What trick has not found itself up my sleve?
Just transfer/sync (with '-i' equivalent) /etc/zypp/repos.d/ to the other machines? (used to be /var/lib/zypp/sources/* or something like that and in an XML-Format on 10.2) HTH, -dnh -- For every complex problem, there is a solution that is simple, neat, and wrong. -- H. L. Mencken -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
David Bolt
-
David C. Rankin
-
David Haller
-
Jano Kupec
-
Jim Henderson
-
Rajko M.
-
Roger Oberholtzer