How to add repository to openSUSE

This is somewhat important to work with GNU/Linux based distributions. Redhat has different way of doing thing,means adding repositories all though both the system using rpm as the base package. Although the package manager is different,in openSUSE they use zypper as the command line package manager.Here is how you can add a repository to the system. I am adding server monitoring repo…

bhaskar@openSUSE_11:23:49_Sun Oct 23:~> sudo /usr/bin/zypper ar -f -c -n server-mon http://download.opensuse.org/repositories/server:/monitoring/openSUSE_11.4/ server-mon
bhaskar's password:
Adding repository 'server-mon' [done]
Repository 'server-mon' successfully added
Enabled: Yes
Autorefresh: Yes
URI: http://download.opensuse.org/repositories/server:/monitoring/openSUSE_11.4/

bhaskar@openSUSE_11:24:23_Sun Oct 23:~> sudo zypper up
Retrieving repository 'server-mon' metadata [|]

New repository or package signing key received:
Key ID: A5C23697EE454F98
Key Name: server:monitoring OBS Project
Key Fingerprint: 8F3BC8EFF549CDCDA918D981A5C23697EE454F98
Key Created: Tue 03 Aug 2010 06:53:39 PM IST
Key Expires: Thu 11 Oct 2012 06:53:39 PM IST
Repository: server-mon

Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a
Retrieving repository 'server-mon' metadata [done]
Building repository 'server-mon' cache [done]
Loading repository data...
Reading installed packages...

The following package updates will NOT be installed:(ignore this for the time being..I will write about it later in other post)
aaa_base aaa_base-extras coreutils gettext-runtime gstreamer-0_10-fluendo-mp3 iproute2 iptables joe kernel-desktop libfreebl3 libldb0 libsoftokn3 libtalloc2 libtdb1 libtevent0 libzypp
MozillaFirefox MozillaFirefox-branding-openSUSE mozilla-kde4-integration mozilla-nspr mozilla-nss mozilla-nss-certs net-tools nfsidmap openssh openssh-askpass python-satsolver rpm
satsolver-tools screen tar tar-lang w3m xterm zypper

Nothing to do.

Yes, I am started to dealing with it after bit of gap..

Okay, now I am going to install a network bandwidth monitoring tool called vnstat out of that repository. Here is how:


bhaskar@openSUSE_11:55:52_Sun Oct 23:~> sudo zypper in vnstat
bhaskar's password:
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
vnstat

1 new package to install.
Overall download size: 96.0 KiB. After the operation, additional 282.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package vnstat-1.10-3.1.i586 (1/1), 96.0 KiB (282.0 KiB unpacked)
Retrieving: vnstat-1.10-3.1.i586.rpm [done (57.5 KiB/s)]
Installing: vnstat-1.10-3.1 [done]
Additional rpm output:
Creating vnstat group
Creating vnstat user

So it’s that simple..like wise you can install lot of third party repository into the opensuse system.Here is mine repository list..which I am going to trim later:


bhaskar@openSUSE_12:15:22_Sun Oct 23:~> sudo zypper lr -d
# | Alias | Name | Enabled | Refresh | Priority | Type | URI | Service
---+----------------------------------+----------------------------------+---------+---------+----------+--------+---------------------------------------------------------------------------------+--------
1 | Updates-for-openSUSE-11.4-11.4-0 | Updates for openSUSE 11.4 11.4-0 | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/11.4/ |
2 | apache | apache | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/Apache/openSUSE_11.4/ |
3 | apache-modules | apache-modules | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/Apache:/Modules/Apache_openSUSE_11.4/ |
4 | apache-php | apache-php | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/server:/php/openSUSE_11.4/ |
5 | google-chrome | google-chrome | Yes | Yes | 99 | rpm-md | http://dl.google.com/linux/chrome/rpm/stable/i386 |
6 | libdvdcss repository | libdvdcss repository | Yes | Yes | 99 | rpm-md | http://opensuse-guide.org/repo/11.4/ |
7 | mozilla | mozilla | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_11.4/ |
8 | net-kern-firewall | net-kern-firewall | Yes | Yes | 99 | rpm-md | http://jftp.medozas.de/openSUSE_11.4/ |
9 | openSUSE-11.4-11.4-0 | openSUSE-11.4-11.4-0 | Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/11.4/repo/oss/ |
10 | packman-essential | packman-essentials | Yes | Yes | 99 | rpm-md | http://packman.inode.at/suse/openSUSE_11.4/Essentials |
11 | packman-multi | packman-multimedia | Yes | Yes | 99 | rpm-md | http://packman.inode.at/suse/openSUSE_11.4/Multimedia |
12 | packman-repo | packman-repo | Yes | Yes | 99 | rpm-md | http://packman.inode.at/suse/openSUSE_11.4/ |
13 | repo-debug | openSUSE-11.4-Debug | No | Yes | 99 | NONE | http://download.opensuse.org/debug/distribution/11.4/repo/oss/ |
14 | repo-debug-update | openSUSE-11.4-Update-Debug | No | Yes | 99 | NONE | http://download.opensuse.org/debug/update/11.4/ |
15 | repo-non-oss | openSUSE-11.4-Non-Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/11.4/repo/non-oss/ |
16 | repo-source | openSUSE-11.4-Source | No | Yes | 99 | NONE | http://download.opensuse.org/source/distribution/11.4/repo/oss/ |
17 | server-mon | server-mon | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/server:/monitoring/openSUSE_11.4/ |
18 | wine | wine | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_11.4/

Hope this will help.

Cheers!
Bhaskar

About unixbhaskar
GNU/Linux Consultant

One Response to How to add repository to openSUSE

  1. Alexis says:

    This blog was… how do I say it? Relevant!
    ! Finally I have found something which helped me. Thank you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: