LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Requesting help about how to add software repositories to yum in suse linux (https://www.linuxquestions.org/questions/linux-newbie-8/requesting-help-about-how-to-add-software-repositories-to-yum-in-suse-linux-4175444165/)

rupeshforu 01-04-2013 11:23 AM

Requesting help about how to add software repositories to yum in suse linux
 
1 Attachment(s)
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. I am submitting the collected file for your review.

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

Regards,
Rupesh.

TB0ne 01-04-2013 11:39 AM

Quote:

Originally Posted by rupeshforu (Post 4862984)
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. I am submitting the collected file for your review.

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

There are not just "sirs" on this site.

You CAN install yum on openSUSE, but what's the point?? Zypper does the same thing, and is pretty much the 'standard' on openSUSE. Secondly, why would you EVER add that many repositories (and based on the list, most are going to conflict with others), to your system?? You're mixing official repositories with non-official ones, and stable with unstable.

This is very similar to other threads you posted about Debian, and you never really explained what you were trying to do, or why.

TroN-0074 01-04-2013 12:03 PM

yes I agree with TB0ne, Just use zypper in OpenSuse, yum in fedora and apt-get in debian. You should be fine leaving them that way.

rupeshforu 01-05-2013 01:11 AM

illustrating what I want
 
Sir,

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

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

Regards,
Rupesh.

rupeshforu 01-05-2013 02:59 AM

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.

colucix 01-05-2013 03:19 AM

Quote:

Originally Posted by rupeshforu (Post 4863340)
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.

You should definitely read some guides and man pages. Check http://en.opensuse.org/SDB:Zypper_usage to learn the basic usage and specifically to add repositories from the command line. You will need a loop to read the urls from your file and add them one at a time. To download the packages you may check the --download-only option in
Code:

man zypper
Anyway, as TB0ne already pointed out, is it a good idea to add all these repositories??? Even if you want to download the packages and install them later, the problem persists. Packages coming from so many different repositories may cause instability. Moreover, in my experience, some of the listed repositories are not up-to-date and maybe they require an older version of some packages to satisfy dependencies.

tommcd 01-05-2013 04:17 AM

Quote:

Originally Posted by rupeshforu (Post 4863319)
I am not going to install all the packages listed in these 750 repositories. I just want to download and install the required selected packages later.

Do you really need 750 repositories?????
I would think that you could install everything but the kitchen sink on Suse with far fewer repos.
See this tutorial on How To Forge where they install a boatload of software with just a few extra repositories: http://www.howtoforge.com/the-perfec...-gnome-desktop

Why do you have such a burning need for so many software sources????

This is very similar to your Debian thread where you wanted to add "all the packages approximately 36000 from online repositories using apt-get download" http://www.linuxquestions.org/questi...an-4175442948/

You really don't need all of that stuff.
You can install anything you want on Debian or Suse with only a few of the non-free repos for those distros.

TB0ne 01-05-2013 09:54 AM

Quote:

Originally Posted by rupeshforu (Post 4863319)
Sir,
you have misunderstood me.I am not going to install all the packages listed in these 750 repositories. I just want to download and install the required selected packages later.

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

AGAIN, there are not just 'sirs' on this site. And no, we didn't misunderstand you...but you're not listening to the advice given to you. Adding all those repositories is a VERY BAD IDEA, and will serve NO USEFUL PURPOSE. The repositories will conflict with each other, so even getting them to UPDATE will be almost impossible, much less function. The repository files are kept in /etc/zypp/repos.d....look at one of the files in there already, and you can easily write a script to import that list and create those new files, if you really want to.

But when you're done, you will be left with a system that will not update, because the various repositories will STILL CONFLICT WITH EACH OTHER. And you've been asked several times in your Debian thread (which is similar to this one), as to WHY YOU WANT TO DO THIS, but haven't answered. Without knowing your goal, we can't help you.
Quote:

Originally Posted by rupeshforu
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.

Yes, you read the man page on the zypper command, which will tell you how to do it. And again, this is NOT going to work, because of the repositories you want to add.

suicidaleggroll 01-05-2013 10:06 AM

How about you try using zypper to install the packages you need FIRST, and THEN add a repo here or there as needed when the standard ones don't have a package you need? What you're planning on doing will break your system. I've been using OpenSUSE for years, and I've only ever added 4 repos to the standard list: VLC, google-chrome, nVidia, and Packman. If you think you need more than this (especially this many more), then you really need to take another look at what you're trying to do and why.

TroN-0074 01-05-2013 11:14 AM

You can manage the repositories in YaST. Here is how you switch to the Packman repository

for KDE you do it this way
http://dl.dropbox.com/u/10573557/Swi...man_switch.png

For Gnome you do it this way
http://dl.dropbox.com/u/10573557/Swi...in%20gnome.png

And here is a little video switching under the KDE desktop too
http://dl.dropbox.com/u/10573557/packman-switch.mpeg

Thanks to caf4926 for that nice how to. here is a link to the original post
http://forums.opensuse.org/content/1...uide-12-2.html

Good luck to you


All times are GMT -5. The time now is 01:47 PM.