LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 08-30-2005, 07:52 PM   #1
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Rep: Reputation: 31
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.
 
Old 08-30-2005, 08:05 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
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
 
Old 08-30-2005, 08:11 PM   #3
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
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.
 
Old 08-30-2005, 08:14 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
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.
 
Old 08-30-2005, 11:15 PM   #5
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
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
 
Old 08-31-2005, 04:35 AM   #6
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
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
 
Old 08-31-2005, 01:27 PM   #7
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
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.

Last edited by craigevil; 08-31-2005 at 01:33 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you add more Yum repositories? Wheat_Thins Linux - Newbie 1 11-27-2005 01:54 PM
How do I add repositories? nottobrite Linux - Newbie 2 07-13-2004 07:34 PM
add repositories??!!? ilectrcbob Linux - Newbie 3 06-18-2004 11:32 AM
Are there any other Repositories I should add frontier1 Fedora 1 01-12-2004 09:14 AM
How to add color to ls in Slackware gnome-terminal? Onox Linux - Software 10 06-22-2003 09:26 PM


All times are GMT -5. The time now is 11:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration