LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1628|回复: 5

[分享]在SuSE 9.3里用apt-get

[复制链接]
发表于 2005-6-9 19:45:30 | 显示全部楼层 |阅读模式
虽然SuSE的apt-get还很不成熟,可供升级和安装的软件有限
但是比YOU的升级空间大得多,而且包括大名鼎鼎的Packman
参考了一些以前的帖子,希望给大家带来一些帮助

1.安装软件:
a.登入
ftp://ftp.gwdg.de/pub/linux/suse ... 86/RPMS.suser-rbos/
下载
apt-0.5.15cnc7-0.suse093.rb0.i586.rpm

apt-libs-0.5.15cnc7-0.suse093.rb0.i586.rpm

b.如果想用图形化前端,还需下载
synaptic-0.56.1-0.suse093.rb0.i586.rpm
用synaptic要方便很多
把下载的软件安装。

2.安装后的配置:
a.使用apt升级系统时,不要升级内核,有可能造成安装失败

/etc/apt/apt.conf.d/apt.conf
中的“RPM”段加入下面一行:
Hold {"kenerl-default";"kenerl-source";};

b.修改升级服务器列表文件
/etc/apt/sources.list
下面是我的文件:

  1. # A very basic sources.list file.
  2. # Remove "base" in case you are behind a slow connection.
  3. # Fastest repository comes first, with netselect it is possible to determine
  4. # the fastest repository easily.
  5. # Visit the server to determine which apt components are provided.

  6. # The list with all available components can be found at:
  7. # http://linix01.gwdg.de/apt4rpm
  8. # Some components provide experimental software, select wisely!
  9. # http://ftp.gwdg.de/pub/linux/suse/apt/SuSE/9.3-i386/examples/sources.list.FTP

  10. # Consult the link above if you want to include uri's for src rpms

  11. rpm http://ftp.gwdg.de/pub/linux/suse/apt SuSE/9.3-i386 xorg suser-guru wine rpmkeys base update-prpm update kde gnome xfree86 mozilla samba3 ximian suser-rbos suser-gbv usr-local-bin suser-tcousin suser-scorot suser-sbarnin suser-jogley suser-ollakka labplot funktronics packman packman-i686 kde3-stable security-prpm security
  12. rpm-src ftp://ftp.gwdg.de/pub/linux/suse/apt SuSE/9.3-i386 xorg suser-guru wine rpmkeys base update-prpm update kde gnome xfree86 mozilla samba3 ximian suser-rbos suser-gbv usr-local-bin suser-tcousin suser-scorot suser-sbarnin suser-jogley suser-ollakka labplot funktronics packman packman-i686 kde3-stable security-prpm security
复制代码

如果只是升级,不想下载源码包,可以把“rpm-src....”一段注掉

3.apt-get使用
a.更新软件包信息。建议在终端里进行。因为在synaptic里刷新会耗很长时间。
打开终端,登录root,用
apt-get update
命令更新软件包信息

b.安装/升级软件(更新软件包信息后)
可以在终端中用
apt-get install [package-name]
命令安装软件包
例如apt-get install gimp=2.2
但是前面讲过,SuSE的apt软件有限,我们也不知道哪个能安装,所以推荐用synaptic

在终端(root模式)中敲入synaptic回车 即可打开synaptic
可以单击菜单上“搜索”来搜索想安装的软件包
也可以在左侧栏下面点“状态”,在“已安装(可更新)”中有可以升级的软件列表,在列表中右键单击要升级的软件,在右键菜单里选择“标记以便升级”;在“未安装”中有可以全新安装的软件列表,在列表中右键单击要全新安装的软件,在右键菜单里选择“标记以便安装”
然后单击菜单中“应用”按钮,弹出摘要烂,有一些选项,点“应用”即开始软件包下载

我这里下载完软件之后不能安装,不知到怎么回事儿。所以到
/var/cache/apt/archives
里面找到下载的软件包,在终端里
rpm -Uvh *.rpm

[附]以下为我所成功升级的软件包:
alsa  alsa-devel  alsa-firmware  alsa-tools   arts   arts-devel  autoconf  automake  gimp  glib2  glib2-devel  glibc  gtk-qt-engine
kde3-i18n  kdeaddons3-kate  kdeaddons3-kicker  kdeaddons3-konqueror  kdeartwork3-sound  kdeartwork3-xscreensaver  kdebase  kdebase-devel  kdebase-kdm  kdebase-ksysguardd  kdebase-samba  kdebase-session  kdegraphics3  kdelibs3  kdelibs3-devel  kdemultimedia3  kdemultimedia3-mixer  kdemultimedia3-sound  kdenetwork3  kdenetwork3-InstantMessenger  kdenetwork3-news  kdenetwork3-vnc
(kde由3.4.0-28升级到3.4.1-3)
lame  lame-devel  libgsf  libgsf-gnome  libmpeg2  lzo-devel  mjpegtools  Mplayer  python-gnome  python-gtk
qt3  qt3-devel  samba  samba-client  sysconfig  yast2-x11 yast2-firewall

只是升级了这些软件 还有kde  
如果有错误大家帮忙指正和补充

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-6-9 19:57:59 | 显示全部楼层
软件依赖性解决的怎么样?根debian上的有什么差别?
另外一个系统有两套包管理机制,会不会有问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-9 20:02:55 | 显示全部楼层
我觉着这里的软件包也都是专门打给9.3的 像packman一样 而且包括packman
至少装了上面那些软件 yast里面还没有提示软件包冲突或者依赖有问题
其他的我就不知道了
回复 支持 反对

使用道具 举报

发表于 2005-6-9 21:37:32 | 显示全部楼层
没问题的,我以前就是一直用的这个,很方便。
这样子通常不会碰到依赖问题,也许和Debian的唯一差别是软件的数量远不如Debian的。

另外,这并不是另外的一套包管理机制,apt4rpm也是用的rpm,和Debian所用的deb是不同的,因此对系统应该不会造成什么影响。
通过这种方式安装的软件同样可以用Yast管理。
回复 支持 反对

使用道具 举报

发表于 2005-6-10 09:05:02 | 显示全部楼层
我最关心的是能否用suse的非官方apt-get把9.0直接升级到9.3
回复 支持 反对

使用道具 举报

发表于 2005-6-10 10:55:11 | 显示全部楼层
在试在线升级9.0到9.3--另外楼主的小error--kernel写成kenerl了--我还纳闷呢--怎么去下载kernel-source了:)
失败中--
linux:/etc/apt/apt.conf.d # apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
The following packages will be upgraded
  BASS SuSEfirewall2 aaa_base build bzip2 cvsps db doxygen enigma gdbm-devel glibc glibc-devel gnome-filesystem i4l-base
  kernel-docs km_drbd libtiff liby2util mad mdadm nmap sysconfig sysstat sysvinit telnet util-linux wget wireless-tools
The following packages will be REPLACED:
  memtest86 (by memtest86+)  unrar (by rar)
The following packages will be REMOVED:
  autoyast2-installation glibc-locale k_deflt pingus yast2 yast2-backup yast2-bootloader yast2-country yast2-dhcp-server
  yast2-dns-server yast2-firewall yast2-http-server yast2-inetd yast2-installation yast2-kerberos-client yast2-ldap-client
  yast2-mail yast2-mouse yast2-ncurses yast2-network yast2-nfs-client yast2-nfs-server yast2-nis-client yast2-nis-server
  yast2-nisplus-client yast2-ntp-client yast2-online-update yast2-packager yast2-phone-services yast2-powertweak yast2-printer
  yast2-profile-manager yast2-repair yast2-restore yast2-runlevel yast2-samba-client yast2-samba-server yast2-scanner
  yast2-security yast2-sound yast2-storage yast2-support yast2-sysconfig yast2-tftp-server yast2-tune yast2-tv yast2-update
  yast2-users yast2-xml
The following NEW packages will be installed:
  cifs-mount db41 libmpeg2 memtest86+ rar udev xaw3dd
The following packages have been kept back
  RealPlayer acroread alsa apt apt-libs dprobes ghostscript-library kernel-source libmpeg3 qt3 readline readline-devel
  samba-client scummvm smpeg syslogd yast2-packagemanager
28 upgraded, 7 newly installed, 2 replaced, 49 removed and 17 not upgraded.
Need to get 0B/37.8MB of archives.
After unpacking 128MB disk space will be freed.
Do you want to continue? [Y/n] Y
        glibc = 2.3.4-23 is needed by glibc-2.3.4-23.2
        i4l-base = 2005.3.21-3 is needed by i4l-base-2005.3.29-1.1
        aaa_base = 9.3-9 is needed by aaa_base-9.3-9.2
        util-linux = 2.12q-7 is needed by util-linux-2.12q-7.2
        bzip2 = 1.0.2-348 is needed by bzip2-1.0.2-348.3
        SuSEfirewall2 = 3.3-18 is needed by SuSEfirewall2-3.3-18.2
        libtiff = 3.7.1-7 is needed by libtiff-3.7.1-7.2
        mdadm = 1.9.0-3 is needed by mdadm-1.9.0-3.2
        udev = 053-15 is needed by udev-053-15.2
        sysconfig = 0.32.0-18 is needed by sysconfig-0.32.0-18.2
        sysvinit = 2.85-38 | sysvinit = 2.85-38.2 is needed by sysvinit-2.85-38.4
        wget = 1.9.1-57 is needed by wget-1.9.1-57.3
        build = 2005.3.11-3 is needed by build-2005.5.12-0.1
        cifs-mount = 3.0.12-5 is needed by cifs-mount-3.0.13-1.1
        cvsps = 1.99-155 is needed by cvsps-1.99-155.2
        gnome-filesystem = 0.1-211 | gnome-filesystem = 0.1-211.2 is needed by gnome-filesystem-0.1-211.4
        liby2util = 2.11.5-3 is needed by liby2util-2.11.6-1.1
        telnet = 1.1-44 is needed by telnet-1.1-44.2
        wireless-tools = 28pre4-16 is needed by wireless-tools-28pre4-16.2
E: Transaction set check failed
E: Handler silently faile
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表