Loading...

Blog: OpenVZ on OpenSUSE 11.1 on Mac mini: opensuse-11.1-repos.sh

File opensuse-11.1-repos.sh, 2.3 KB (added by simon@…, 11 years ago)

Create useful repositories for openSUSE 11.1 container.

Line 
1#!/bin/bash
2
3cat > /etc/zypp/repos.d/Apache:Modules_openSUSE_11.1.repo << EOF
4[Apache:Modules/openSUSE_11.1]
5name=Apache:Modules/openSUSE_11.1
6enabled=1
7autorefresh=1
8baseurl=http://download.opensuse.org/repositories/Apache:/Modules/openSUSE_11.1/
9type=rpm-md
10keeppackages=0
11EOF
12
13cat > /etc/zypp/repos.d/devel:languages:python_openSUSE_11.1.repo << EOF
14[devel:languages:python/openSUSE_11.1]
15name=devel:languages:python/openSUSE_11.1
16enabled=1
17autorefresh=1
18baseurl=http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_11.1/
19type=rpm-md
20keeppackages=0
21EOF
22
23cat > /etc/zypp/repos.d/devel:tools:scm_openSUSE_11.1.repo << EOF
24[devel:tools:scm/openSUSE_11.1]
25name=devel:tools:scm/openSUSE_11.1
26enabled=1
27autorefresh=1
28baseurl=http://download.opensuse.org/repositories/devel:/tools:/scm/openSUSE_11.1
29type=rpm-md
30keeppackages=0
31EOF
32
33cat > /etc/zypp/repos.d/openSUSE-11.1-0.repo << EOF
34[openSUSE 11.1-0]
35name=openSUSE 11.1-0
36enabled=1
37autorefresh=1
38baseurl=http://download.opensuse.org/distribution/11.1/repo/oss/
39path=/
40type=yast2
41keeppackages=0
42EOF
43
44cat > /etc/zypp/repos.d/openSUSE:Factory:Contrib:openSUSE_11.1.repo << EOF
45[openSUSE:Factory:Contrib:openSUSE_11.1]
46name=openSUSE:Factory:Contrib:openSUSE_11.1
47enabled=1
48autorefresh=1
49baseurl=http://download.opensuse.org/repositories/openSUSE:Factory:Contrib/openSUSE_11.1
50type=rpm-md
51keeppackages=0
52EOF
53
54cat > /etc/zypp/repos.d/repo-debug.repo << EOF
55[repo-debug]
56name=openSUSE-11.1-Debug
57enabled=0
58autorefresh=1
59baseurl=http://download.opensuse.org/debug/distribution/11.1/repo/oss/
60path=/
61type=NONE
62priority=100
63keeppackages=0
64EOF
65
66cat > /etc/zypp/repos.d/repo-non-oss.repo << EOF
67[repo-non-oss]
68name=openSUSE-11.1-Non-Oss
69enabled=1
70autorefresh=1
71baseurl=http://download.opensuse.org/distribution/11.1/repo/non-oss/
72path=/
73type=yast2
74priority=100
75keeppackages=0
76EOF
77
78cat > /etc/zypp/repos.d/repo-source.repo << EOF
79[repo-source]
80name=openSUSE-11.1-Source
81enabled=0
82autorefresh=1
83baseurl=http://download.opensuse.org/source/distribution/11.1/repo/oss/
84path=/
85type=NONE
86priority=100
87keeppackages=0
88EOF
89
90cat > /etc/zypp/repos.d/repo-update.repo << EOF
91[repo-update]
92name=openSUSE-11.1-Update
93enabled=1
94autorefresh=1
95baseurl=http://download.opensuse.org/update/11.1/
96path=/
97type=rpm-md
98priority=20
99keeppackages=0
100EOF
101
102echo "All openSUSE repositories added."
103