SuSE11.2 (zypper)で srpm をインストールする.

SuSE は zypper って管理ツールに変わったのね.疎い私.

onaka@linux-1n7v:~> sudo zypper source-install eclipse-platform
Reading installed packages...
Loading repository data...
Source package 'eclipse-platform' not found.
Resolving package dependencies...

Nothing to do.
monaka@linux-1n7v:~>

あれれ? …と,小一時間悩んだが,結局こういうことらしい.

# | Alias                               | Name                            | Enabled | Refresh
--+-------------------------------------+---------------------------------+---------+--------
1 | http-download.opensuse.org-6388b847 | openSUSE 11.2-0 向けの更新 | Yes     | Yes
2 | openSUSE 11.2-0                     | openSUSE 11.2-0                 | Yes     | No
3 | repo-debug                          | openSUSE-11.2-Debug             | No      | Yes
4 | repo-non-oss                        | openSUSE-11.2-Non-Oss           | Yes     | Yes
5 | repo-oss                            | openSUSE-11.2-Oss               | Yes     | Yes
6 | repo-source                         | openSUSE-11.2-Source            | No      | Yes

repo-source が Enabled になっていない.

monaka@linux-1n7v:~> sudo zypper modifyrepo -e 6                                             
Repository 'repo-source' has been successfully enabled.                                      
monaka@linux-1n7v:~>  sudo zypper source-install eclipse
Reading installed packages...
Loading repository data...
Resolving package dependencies...

The following NEW packages are going to be installed:
  alsa-devel ant ant-junit ant-nodeps antlr atk-devel audiofile-devel cairo-devel dbus-1-devel dbus-1-glib-devel fdupes
  fontconfig-devel freetype2-devel gcc-gij gcc-java gcc44-gij gcc44-java gconf2-devel gjdoc glib2-devel gnome-keyring-devel
  gnome-vfs2-devel gtk2-devel hal-devel java-1_5_0-gcj-compat java-1_5_0-gcj-compat-devel junit libart_lgpl-devel libavahi-devel
  libavahi-glib-devel libavahi-ui0 libbonobo-devel libbonoboui-devel libesd-devel libgcj-devel libgcj44 libgcj44-devel
  libgcj44-jar libgcj_bc44 libgnome-devel libgnomecanvas-devel libgnomeui-devel libidl-devel libjpeg-devel libopenssl-devel
  libpciaccess0-devel libpixman-1-0-devel libpng-devel libtasn1-devel libuuid-devel libxml2-devel orbit2-devel pango-devel
  popt-devel readline-devel update-desktop-files xerces-j2-xml-resolver xorg-x11-devel xorg-x11-fonts-devel xorg-x11-libICE-devel
  xorg-x11-libSM-devel xorg-x11-libX11-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-libXext-devel
  xorg-x11-libXfixes-devel xorg-x11-libXmu-devel xorg-x11-libXp-devel xorg-x11-libXpm-devel xorg-x11-libXprintUtil-devel
  xorg-x11-libXrender-devel xorg-x11-libXt-devel xorg-x11-libXv-devel xorg-x11-libfontenc-devel xorg-x11-libxcb-devel
  xorg-x11-libxkbfile-devel xorg-x11-proto-devel xorg-x11-util-devel xorg-x11-xtrans-devel zlib-devel

The following source package is going to be installed:
  eclipse

80 new packages to install.
Overall download size: 114.0 MiB. After the operation, additional 220.9 MiB will be used.
Continue? [y/n/?] (y): 

一件落着.