On 02/15/2011 04:36 PM, Greg Freemyer wrote:
2011/2/15 Jan Litwiński
Welcome!
I like to add repository by hand like:
[Banshee] name=Banshee Media Player (openSUSE_11.3) type=rpm-md baseurl=http://download.opensuse.org/repositories/Banshee/openSUSE_11.3/ gpgcheck=1 gpgkey=http://download.opensuse.org/repositories/Banshee/openSUSE_11.3/repodata/rep... enabled=1
How to do it?
I think you just have to create a file in /etc/zypp/repos.d
with your contents.
Greg
Or just let zypper do it for you. As others have mentioned, the form of the
command line is (as root):
zypper ar -k -f $URL $SHORTNAME
In your case it would be:
zypper ar -k -f \
http://download.opensuse.org/repositories/Banshee/openSUSE_11.3/ banshee
From 'zypper help ar':
18:18 zephyr:~> zypper help ar
addrepo (ar) [options] <URI> <alias>
addrepo (ar) [options]
http://download.opensuse.org/repositories/Banshee/openSUSE_11.3/ banshee Adding repository 'banshee' [done] Repository 'banshee' successfully added Enabled: Yes Autorefresh: Yes URI: http://download.opensuse.org/repositories/Banshee/openSUSE_11.3/
[18:24 zephyr/home/david] # cat /etc/zypp/repos.d/banshee.repo [banshee] name=banshee enabled=1 autorefresh=1 baseurl=http://download.opensuse.org/repositories/Banshee/openSUSE_11.3/ type=NONE keeppackages=1 The to get rid of it just do: [18:24 zephyr/home/david] # zypper rr banshee Removing repository 'banshee' [done] Repository 'banshee' has been removed. -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org