Is there a way to add repositories through the terminal?
Suse/NovellThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free.
Is there a way to add repositories through the terminal?
Is there a way to add repositories through the terminal? And if so, what would I need to enter? I'm trying to make a script that'll add the repositories of my choice into YaST with a single click and script.
Yes there is:
I found the easiest way to add a new source rather than doing it in YAST was to use a terminal.
Open a terminal as root then type: installations_sources -a your source URL then hit enter
Originally posted by craigevil Yes there is:
I found the easiest way to add a new source rather than doing it in YAST was to use a terminal.
Open a terminal as root then type: installations_sources -a your source URL then hit enter
So I would just type in su root and then installation_sources -a ftp://ftp.suse.com/pub/suse/i386/9.3/ and that's it?! That's pretty sweet. Thanks a lot.
Yeqah I found it on the suse wiki. I thought it was pretty cool. Every time I tried to add a source in Yast it gave me errors. Used the terminal and it worked with no problems.
Originally posted by craigevil Yeqah I found it on the suse wiki. I thought it was pretty cool. Every time I tried to add a source in Yast it gave me errors. Used the terminal and it worked with no problems.
And thanks for the headsup on Susewiki. That site looks fantastic!
What do you guys think about this script?
Code:
#!/bin/bash
#YaST Online Updates Sources Installer for Suse 9.3 by T#
#Will add 5 online sources to the repositories
echo
echo
echo -e "\033[1mYaST Online Updates Source Installer for Suse 9.3 by T#\033[0m"
echo
echo "NOTE: The installer may stall if the servers are running slow."
echo
echo
echo "[1 of 5] Installing update source"
installation_sources -a ftp://ftp.suse.com/pub/suse/i386/9.3/
echo
echo "[2 of 5] Installing supplementary KDE 3.4 update source"
installation_sources -a ftp://ftp.suse.com/pub/suse/i386/sup...3/yast-source/
echo
echo "[3 of 5] Installing supplementary GNOME 2.11 update source"
installation_sources -a ftp://ftp.suse.com/pub/suse/i386/sup...3/yast-source/
echo
echo "[4 of 5] Installing supplementary misc update source"
installation_sources -a ftp://ftp.suse.com/pub/suse/i386/sup...3/yast-source/
echo
echo "[5 of 5] Installing Packman's multimedia source"
installation_sources -a http://packman.iu-bremen.de/
echo
echo
echo -e "\033[1mYaST Online sources installed successfully!\033[0m"
echo
Sorry about this:
Hi craigevil - could you write me an email? I'm at ea4049@bris.ac.uk I can't PM you because you
have to pay to use that function...
Sorry about hijacking this thread...
Originally posted by Riddick Sorry about this:
Hi craigevil - could you write me an email? I'm at ea4049@bris.ac.uk I can't PM you because you
have to pay to use that function...
Sorry about hijacking this thread...
Riddick
IM me on Yahoo using reverendsky or Google talk using craigevil
BTW I am not running SUSE at the moment. I bombed my setup and have not taken the time to reinstall. I might just wait for the OpenSuSE RC in September.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.