LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Is there a way to add repositories through the terminal? (https://www.linuxquestions.org/questions/suse-opensuse-60/is-there-a-way-to-add-repositories-through-the-terminal-358653/)

Cinematography 08-30-2005 07:52 PM

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.

craigevil 08-30-2005 08:05 PM

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

Cinematography 08-30-2005 08:11 PM

Quote:

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.

craigevil 08-30-2005 08:14 PM

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.

Cinematography 08-30-2005 11:15 PM

Quote:

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


Riddick 08-31-2005 04:35 AM

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

craigevil 08-31-2005 01:27 PM

Quote:

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


SuSE links I found helpful:

Main Page - SUSE Wiki

Resources for New SUSE Linux Users

apt for suse

Install-apt4suse - SUSE Wiki

User Documentation - OpenSUSE

Additional YaST Package Repositories - OpenSUSE

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.


All times are GMT -5. The time now is 06:05 AM.