OpenSUSE Linux Tips, tricks, how-tos, opinions, and news
My Resume - My LinkedIn Profile - twitter: @scottmmorrisTopic of the day: YAST Installation Sources
I like to automate tedious tasks. Probably more than anyone I know. This includes entering Installation Sources into YAST. Thus, I have created a small script that will do this for me. That way, I don’t have to put them in by hand every single time.
I do need to tell you something about the script. I’m putting said information before the link in hopes that it’ll get read. It is as follows: As the script runs, it tells you whether the Install Source was inserted successfully or not. Some of the sources will return with the following error: ERROR(Media:operation is not supported by media). However, apparently, they still work just fine. You can go into YAST, and the ones that gave that error are in the list. You can even refresh them, etc.
Oh, that reminds me. You will need to go in and manually enable REFRESH on each of your Install Sources. Instructions on how to do this will be displayed as the script finishes.
Also, you will need to run this as root or superuser (su). It will not even find the command otherwise.
Before I forget, I had better put a link to the script (by the way, it has been tested with SUSE 10.0 only). Enjoy.
Take note that I have a version for 64-bit machines here.
If you have an improvement for the script, post a comment in regards to this blog entry. Include your email address.
Topic Change: Concealed Weapons Permits
Kansas lawmakers override veto on concealed guns
Do You Know the Truth About Concealed Carry?
I have such a permit myself, and I wish everyone could enjoy the truth of these two articles.
If you enjoyed this post, make sure you subscribe to my RSS feed!| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| « Feb | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||
51 queries. 0.741 seconds
April 3rd, 2006 at 11:42 am
first off….love the blog its been very helpful for me as a newbie linux guy….
When I try to use this script or try to manually add a source to yast…i get the following error:
Installing EXTRA Installation Source…
install_sources.sh: line 66: installation_sources: command not found
i am running sled 10 and i cant find the installation_sources command….
What am I missing?
Thanks
Mike
April 3rd, 2006 at 12:13 pm
Hey, thanks!
The only thing I can really suggest is that you make sure you are running it as root. Just type ’su’ at a commandline, hit ENTER, and enter your root password. I’m sure you’re already doing that, though.
I have really only tested the script with SUSE Linux 10.0. I haven’t tested it with SLED 10. I’d have to take a look at how SLED 10 does its command-line YAST stuff. For now, unfortunately, all I can say is that I only know that it works with SUSE Linux 10.0.
If you do find out anything more about a command to manage install sources from the commandline, please do let me know.
Also, I’ll take a look and post here if I find out anything else.
April 3rd, 2006 at 3:12 pm
Hmmm…. looks like you’re absolutely right. I got SLED 10, installed it, and checked for the ‘installation_sources’ command. Not there at all. I’m having some people check on this, though, to see if there is anything else that runs on the commandline that is similar in functionality.
June 6th, 2006 at 3:14 pm
[...] This is a handle automation script for adding installation sources: Automate Insertion of YAST Installation Sources. I don’t know why this stuff isn’t in the default installation. C’est la vie. [...]
July 26th, 2006 at 1:18 am
thanks for the script!
October 3rd, 2006 at 3:41 pm
Great Script. Saves alot of time…. Thank you.
November 1st, 2006 at 5:32 pm
PROBLEM:
missing installation_sources script
SOLUTION:
use y2pmsh instead.
EXAMPLE:
y2pmsh source -a
January 17th, 2008 at 6:16 am
In > 10.2 you need to use ‘zypper’ instead of ‘installation_sources’ like;
zypper sa http://packman.iu-breman.de/suse/10.2/
presumably same in SLED
January 23rd, 2010 at 5:10 pm
Como sou usuário do opensuse 10.0, resolvi baixar e usar este script. Devo afirmar para minha surpresa funcionou maravilhosamente bem, sem nenhum problema como os que eu vinha tendo por causa do Yast em aceitar novos repositorios. Assim que esecutei o Yast os fontes foram mostrados sem problemas foi ndecessario apenas ativa-los manualmente e pronto. Script aprovado sem sombra de duvida.
Parabens, e obrigado…