Requesting help about how to add software repositories to yum

Sir,

I have installed opensuse X86-64 12.2 on AMD-FX 4100 machine. I have downloaded all the software repositories related to opensuse and stored in a text file. I know how to add one software repository( url ) to yum at a time. I have collected approximately 750 urls which is not possible to add one url at a time.

Sir can you please specify a procedure to add all the repositories( url’s ) to yum contained in my collected file.

Regards,
Rupesh.

On 01/04/2013 06:26 PM, rupeshforu wrote:
>
> Sir can you please specify a procedure to add all the repositories(
> url’s ) to yum contained in my collected file.

do not even try! if you enable all repos it will surely wreck your system!!

instead follow the VERY sound advice in the paragraph beginning with
“IMPORTANT!” in this forum post: http://tinyurl.com/33qc9vu

additionally, from your question it seems you may be rather new to Linux
in general or openSUSE in particular…i therefore suggest you read all
of the articles in that thread, which begins here:
http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/new-user-how-faq-read-only/424611-new-users-opensuse-pre-install-general-please-read.html

as well as the thread specific to 12.2, here
http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/new-user-how-faq-read-only/477124-new-users-opensuse-12-2-pre-installation-please-read.html

and, then the documentation here:
http://doc.opensuse.org/documentation/html/openSUSE/opensuse-startup/

doing those things and then asking questions here is your shortest path
to a secure and stable system…

welcome to openSUSE!!


dd http://goo.gl/PUjnL
http://tinyurl.com/DD-Caveat http://tinyurl.com/DD-Hardware
http://tinyurl.com/DD-Software

Similar advice was already given to the OP in this thread: http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/481995-request-procedure-download-all-packages.html
and here: Debian User Forums • View topic - request for command to download all packages

Now everybody may of course try and test whatever (s)he wants in her/his system. But please Rupesh, do not expect to get much help on things that most sensible people wouldn’t even think of, let alone try and thus will have no experience with. I guess you are on your own with your experiments.

Most people here will not even have yum instyalled. They use either YaST > Software or zypper.

On 2013-01-04 18:26, rupeshforu wrote:
>
> Sir,
>
> I have installed opensuse X86-64 12.2 on AMD-FX 4100 machine. I
> have downloaded all the software repositories related to opensuse and
> stored in a text file. I know how to add one software repository( url )
> to yum at a time. I have collected approximately 750 urls which is not
> possible to add one url at a time.
>
> Sir can you please specify a procedure to add all the repositories(
> url’s ) to yum contained in my collected file.

No way!

  1. I do not use yum, not do I see a valid reason to do so in openSUSE.
  2. I do not see a reason to add 750 urls to the system.
  3. I can not knowingly help you to wreck a system. Next you will ask how
    to repair your system… I hope to remember your name then :frowning:


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

On 01/04/2013 07:46 PM, hcvv wrote:
> Similar advice was already given to the OP in this thread:

ok…but, i didn’t see those…have been ‘away’ some holiday
days…and, just marked everything “as read” on return…

heh! followed the link to the Debian forum and loved “there is no sane
reason to do so.” :slight_smile:


dd

It looks like I have my 15 minutes of fame. :shame: It should not be my default policy to be so intolerant no matter what board I am on. Though I think this guy is honestly trying to waste our time.

I just hope he/she/it is not using my ISP. :\

Either I don’t understand your question or the way to do it is quite simple - despite the fact than adding 750 repos would be crazy, no matter on which system. Under Fedora - which is where yum is mostly used - you woul add one .repo file in /etc/yum.repos.d/ for each repo. Here’s an example for my Fedora repo:


# cat /fedora/etc/yum.repos.d/pta.repo
[home_please_try_again_Fedora]
name=home:please_try_again:Fedora (Fedora_16)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/home:/please_try_again:/Fedora/Fedora_16/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-pta
enabled=1

I’m not sure about the gpgkey because I usually download the key in advance, but this line might get added the first time you refresh the repo and accept the key.

Reading a list of URLs from a file and creating such .repo files is a simple task to do in a script. But why do you want/need to use yum for openSUSE, if I may ask?

  • BTW, I’m not going to write this script for you, because it is really simple… or is it a homework of some kind?

Read the other comments and first and for all the other threads linked to earlier to get a sort of impression about the background.

On 2013-01-04 21:02, dd wrote:
> ok…but, i didn’t see those…have been ‘away’ some holiday
> days…and, just marked everything “as read” on return…

I don’t. :slight_smile:

Warning: NNTP lingo. :wink:

I have a filter in thunderbird that searches all messages for a match in
the sender to “me” and then mark that post as read and the thread as
“watch”. Then I have all folders filtered by “threaded date”. Thus I
detect recent posts at the bottom, and those in which I participated are
marked automatically. It makes easy to follow the threads.

And those I did not read just flow up, unread.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

Sir,

I am not going to install all the packages listed in these 750 repositories. I just want to download and install the required packages later.

Sir Kindly provide solution to add repositories to yum and to only download packages not installation of these packages.

Sir I am newbie I don’t know scripting but I know how to run your script. Please help me.

Regards,
Rupesh.

Please, understand that even if you don’t install the packages, you’re most likely going to mess up the system by adding the repositories. I don’t know of anyone who needs 750 repositories. And finally, why are you using yum under openSUSE? (are you actually using openSUSE?) The package management tool for openSUSE is zypper, and everyone here will tell you that this is the one you have to use.

Sir,

As I am new to opensuse can you please suggest a method to only download the packages from online repositories using zypper. And also suggest a method to add repositories bulkly to zypper.

Regards,
Rupesh.

man zypper

       -d, --download-only
              Only download the packages for later installation.

What happened to YaST, probably more suitable for newcomers? I understand why you contrasted zypper to Yum, but the OP may not. :slight_smile:

On 01/05/2013 02:28 AM, Carlos E. R. wrote:
> I have a filter … match in the sender to “me” and…

i had my TB set all the same, except didn’t have the “watch” set, that
is cool–thanks…

so, i could have still fairly easily followed up on all ‘my’ threads,
but there were hundreds of unread to wade though (without the “watch”)
[not to mention real email/fb/G+/etc etc etc] and i just didn’t
wanna…so, if anyone has been waiting several days for my next
input, if they don’t bump i won’t see…


dd

On 01/05/2013 08:06 AM, rupeshforu wrote:
>
> Sir,
>
> I am not going to install all the packages listed in these 750
> repositories. I just want to download and install the required packages
> later.
>
> Sir Kindly provide solution to add repositories to yum and to only
> download packages not installation of these packages.

i think this is a language problem…what is written might be read to
mean what you really want is a way to locally host a full mirror of all
openSUSE repos so that yourself, or others in your
company/university/state can later download from the mirror without
using all the band width to pull it in again and again

if that is what you are looking for, that is easy–see
http://en.opensuse.org/openSUSE:Mirrors to learn about our mirrors

and, to learn about how to set up your own local mirror (say for
yourself, or your company, or your university) see here:
http://en.opensuse.org/openSUSE:Mirror_howto

but do NOT use yum with openSUSE and do NOT enable all repos on your
production workstation…instead, build a mirror on a local http server
and pull from it…

let us know how you get on!

and, if you were to ask on the (for example) Debian or Red Hat forums
for similar info i would suggest you ask: How do I setup a local Debian
mirror?


dd http://tinyurl.com/DD-Caveat

Please Rupesh, understand that the one person that’s going to tell you how to achieve your goal, is the person that’s giving you the path to seriously borking your system. No matter what you use, yum, Yast, zypper. The analogy that comes to mind is “Downloading the internet”.

How will you know what version of a package is required? With that many repos, there will be several versions of the same package, ranging from stable to very unstable (incomplete or full of bugs). There will be many conflicting package dependencies resulting from multiple versions of each package, and you will waste many hours trying to sort that out on your own!

“Fools rush in”…

Exactly!