repositório automatico

1. repositório automatico

Ricardo Jose Bastos
bastos

(usa Ubuntu)

Enviado em 09/01/2007 - 21:14h

Ai olha so que maneiro que o OTTON la do susebr fez em vez de vc ficar add item por item ele fez um script maneiro que automatiza sozinho o suse 10.2
vale a pena testar copie e cole esse escript salve como repositorio.sh de o comando chmod a+x depois ./repositório.sh e voi la pode ver depois ta todo la na sua fonte de instalação

#!/bin/sh

# Make sure we are root.

if [ "$EUID" != "0" ]; then
echo "You must have root privileges to run this script!"
exit 1
fi

printf "################################################################################\n"
printf "YAST INSTALLATION SOURCES SETUP SCRIPT FOR openSUSE 10.2\n"
printf "by Scott Morris (2006-12-22)\n"
printf "http://www.suseblog.com/\n\n"
printf "You *MUST* be connected to the Internet for this script to work!\n\n"
printf "Though almost all repositories are added in a matter of seconds, the OSS\n"
printf "repository can take upwards of half an hour to download and parse through all\n"
printf "the metadata. It works fine, it just takes awhile on that repo. Please be\n"
printf "patient with that one.\n"
printf "################################################################################\n"

rug service-add http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.2/ --type=ZYPP "Guru"
rug service-add http://ftp.gwdg.de/pub/linux/misc/suser-jengelh/SUSE-10.2/ --type=ZYPP "jengelh"
rug service-add http://packman.iu-bremen.de/suse/10.2 --type=ZYPP "Packman"
rug service-add http://software.opensuse.org/download/editors/openSUSE_10.2/ --type=ZYPP "editors"echo
rug service-add http://software.opensuse.org/download/GNOME:/Community/openSUSE_10.2/ --type=ZYPP "GNOME-Community"
rug service-add http://software.opensuse.org/download/KDE:/Community/openSUSE_10.2/ --type=ZYPP "KDE-Community"
rug service-add http://software.opensuse.org/download/KDE:/KDE3/openSUSE_10.2/ --type=ZYPP "KDE3"
rug service-add http://software.opensuse.org/download/KDE:/Qt/openSUSE_10.2/ --type=ZYPP "KDE-QT"
rug service-add http://software.opensuse.org/download/openSUSE:/Tools/openSUSE_10.2 --type=ZYPP "openSUSE-Tools"
rug service-add http://software.opensuse.org/download/server%3a/monitoring/openSUSE_10.2/ --type=ZYPP "server-monitoring"
rug service-add http://software.opensuse.org/download/X11%3a/XGL/SUSE_Factory --type=ZYPP "XGL SUSE Factory"
rug service-add http://software.opensuse.org/download/X11:/xfce/openSUSE_10.2/ --type=ZYPP "xfce"
rug service-add http://software.opensuse.org/download/X11:/XGL/openSUSE_10.2/ --type=ZYPP "XGL"
rug service-add http://suse.mirrors.tds.net/pub/suse/update/10.2 --type=ZYPP "openSUSE-update"
rug service-add http://suse.osuosl.org/suse/update/10.2 --type=ZYPP "SUSE Update"
rug service-add http://download.videolan.org/pub/vlc/latest/SuSE/10.2 --type=ZYPP "Videolan"
printf "Adding non-oss repository. This may take a few minutes.\n"
rug service-add http://download.opensuse.org/distribution/10.2/repo/non-oss/ --type=ZYPP "openSUSE-10.2-non-oss"
printf "Adding OSS repository. This may take quite awhile. Rest assured that it hasn't locked up.\n"
rug service-add http://download.opensuse.org/distribution/10.2/repo/oss/ --type=ZYPP "openSUSE-10.2"

printf "\nThe script has now finished.\n"
printf "For many more installation sources, please visit the following URL:\n"
printf "http://linux.wordpress.com/2006/12/20/opensuse-102-the-most-complete-list-of-repositories/\n\n\n"


  


2. Re: repositório automatico

Leandro Gambim
leandrorocker

(usa Slackware)

Enviado em 10/01/2007 - 07:33h

muito legal vou testar hoje mesmo!


3. num esquece

Ricardo Jose Bastos
bastos

(usa Ubuntu)

Enviado em 10/01/2007 - 07:51h

vc copia no seu editor de texto favorito ok.
depois abre o konsole e chmod a+x
depois ./ e fique observando o andamento da carruagem vc vai ter que eceitar "y"


4. Re: repositório automatico

Leandro Gambim
leandrorocker

(usa Slackware)

Enviado em 11/01/2007 - 07:20h

Usei o Kate e segui os passos descritos.
E bom, pelo visto deu certo ele executou tudo, muito legal!
Agora eu gostaria de saber uma coisa, eu preciso rodar esse arquivo de quanto em quanto tempo?


5. tempo

Ricardo Jose Bastos
bastos

(usa Ubuntu)

Enviado em 13/01/2007 - 00:14h

em uma unica vez e pronto vai estar tudo la na sua fonte de inbnstalação


6. Re: repositório automatico

Fabio Lima
slavezerorj

(usa openSUSE)

Enviado em 14/01/2007 - 12:16h

este script é nota 10!
mas vc ainda pode adicionar outros repositórios que vc pode encontrar no site opensuse.org p/ completar sua coleção de repositórios. Vale lembrar que devemos ter cuidao com o uso deles, pois podemos criar problemas no nosso sistema com o uso errado.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts