OpenBlocks 600 の aptitudeによるパッケージ管理

 OBS600はもともとROM128MBにOSが入っているだけあって,ほとんどのパッケージが削られています。/sbinにはリンクも含めて103個しか入っていません。/usr/sbinも113個です。
 初期のインストールパッケージは以下の様です。

# dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  adduser        3.110          add and remove users and groups
ii  apt            0.7.20.2+lenny Advanced front-end for dpkg
ii  apt-utils      0.7.20.2+lenny APT utility programs
ii  aptitude       0.4.11.11-1~le terminal-based package manager
ii  base-files     5lenny8        Debian base system miscellaneous files
ii  base-passwd    3.5.20         Debian base system master password and group
ii  bash           3.2-4          The GNU Bourne Again SHell
ii  bsdmainutils   6.1.10         collection of more utilities from FreeBSD
ii  bsdutils       1:2.13.1.1-1   Basic utilities from 4.4BSD-Lite
ii  coreutils      6.10-6         The GNU core utilities
ii  cpio           2.9-13lenny1   GNU cpio — a program to manage archives of
ii  cron           3.0pl1-105     management of regular background processing
ii  debconf        1.5.24         Debian configuration management system
ii  debconf-i18n   1.5.24         full internationalization support for debcon
ii  debian-archive 2010.08.28~len GnuPG archive keys of the Debian archive
ii  debianutils    2.30           Miscellaneous utilities specific to Debian
ii  dhcp3-client   3.1.1-6+lenny4 DHCP client
ii  dhcp3-common   3.1.1-6+lenny4 common files used by all the dhcp3* packages
ii  diff           2.8.1-12       File comparison utilities
ii  dpkg           1.14.30        Debian package management system
ii  e2fslibs       1.41.3-1       ext2 filesystem libraries
ii  e2fsprogs      1.41.3-1       ext2/ext3/ext4 file system utilities
ii  ed             0.7-3          The classic unix line editor
ii  findutils      4.4.0-2        utilities for finding files–find, xargs
ii  gcc-4.2-base   4.2.4-6        The GNU Compiler Collection (base package)
ii  gcc-4.3-base   4.3.2-1.1      The GNU Compiler Collection (base package)
ii  gnu-fdisk      1.2-1          Linux fdisk replacement based on libparted
ii  gnupg          1.4.9-3+lenny1 GNU privacy guard – a free PGP replacement
ii  gpgv           1.4.9-3+lenny1 GNU privacy guard – signature verification t
ii  grep           2.5.3~dfsg-6   GNU grep, egrep and fgrep
ii  groff-base     1.18.1.1-21    GNU troff text-formatting system (base syste
ii  gzip           1.3.12-6+lenny The GNU compression utility
ii  hostname       2.95           utility to set/show the host name or domain
ii  ifupdown       0.6.8+nmu1     high level tools to configure network interf
ii  info           4.11.dfsg.1-4  Standalone GNU Info documentation browser
ii  initscripts    2.86.ds1-61    Scripts for initializing and shutting down t
ii  iproute        20080725-2     networking and traffic control tools
ii  iptables       1.4.2-6        administration tools for packet filtering an
ii  iputils-ping   3:20071127-1+l Tools to test the reachability of network ho
ii  kernel-image-2 2.6.29-1       Linux kernel image for version 2.6.29 on Ope
ii  libacl1        2.2.47-2       Access control list shared library
ii  libattr1       1:2.4.43-2     Extended attribute shared library
ii  libblkid1      1.41.3-1       block device id library
ii  libbz2-1.0     1.0.5-1+lenny1 high-quality block-sorting file compressor l
ii  libc6          2.7-18lenny6   GNU C Library: Shared libraries
rc  libc6-ppc64    2.7-18lenny4   GNU C Library: 64bit Shared libraries for Po
ii  libcomerr2     1.41.3-1       common error description library
ii  libconsole     1:0.2.3dbs-65. Shared libraries for Linux console and font
ii  libcwidget3    0.5.12-4       high-level terminal interface library for C+
ii  libdb4.6       4.6.21-11      Berkeley v4.6 Database Libraries [runtime]
ii  libdevmapper1. 2:1.02.27-4    The Linux Kernel Device Mapper userspace lib
ii  libedit2       2.11~20080614- BSD editline and history libraries
ii  libept0        0.5.22         High-level library for managing Debian packa
ii  libgcc1        1:4.3.2-1.1    GCC support library
ii  libgcrypt11    1.4.1-1        LGPL Crypto library – runtime library
ii  libgdbm3       1.8.3-3        GNU dbm database routines (runtime version)
ii  libgnutls26&
nbsp;   2.4.2-6+lenny2 the GNU TLS library – runtime library
ii  libgpg-error0  1.4-2          library for common error values and messages
ii  libkeyutils1   1.2-9          Linux Key Management Utilities (library)
ii  libkrb53       1.6.dfsg.4~bet MIT Kerberos runtime libraries
ii  liblocale-gett 1.05-4         Using libc functions for internationalizatio
ii  liblzo2-2      2.03-1         data compression library
ii  libncurses5    5.7+20081213-1 shared libraries for terminal handling
ii  libncursesw5   5.7+20081213-1 shared libraries for terminal handling (wide
ii  libnewt0.52    0.52.2-11.3+le Not Erik’s Windowing Toolkit – text mode win
ii  libpam-modules 1.0.1-5+lenny1 Pluggable Authentication Modules for PAM
ii  libpam-runtime 1.0.1-5+lenny1 Runtime support for the PAM library
ii  libpam0g       1.0.1-5+lenny1 Pluggable Authentication Modules library
ii  libparted1.8-1 1.8.8.git.2008 The GNU Parted disk partitioning shared libr
ii  libpopt0       1.14-4         lib for parsing cmdline parameters
ii  libreadline5   5.2-3.1        GNU readline and history libraries, run-time
ii  libsasl2-2     2.1.22.dfsg1-2 Cyrus SASL – authentication abstraction libr
ii  libselinux1    2.0.65-5       SELinux shared libraries
ii  libsepol1      2.0.30-2       Security Enhanced Linux policy library for c
ii  libsigc++-2.0- 2.0.18-2       type-safe Signal Framework for C++ – runtime
ii  libslang2      2.1.3-3        The S-Lang programming library – runtime ver
ii  libss2         1.41.3-1       command-line interface parsing library
ii  libssl0.9.8    0.9.8g-15+lenn SSL shared libraries
ii  libstdc++6     4.3.2-1.1      The GNU Standard C++ Library v3
ii  libtasn1-3     1.4-1          Manage ASN.1 structures (runtime)
ii  libtext-charwi 0.04-5+b1      get display widths of characters on the term
ii  libtext-iconv- 1.7-1+b1       converts between character sets in Perl
ii  libtext-wrapi1 0.06-6         internationalized substitute of Text::Wrap
ii  libusb-0.1-4   2:0.1.12-13    userspace USB programming library
ii  libuuid1       1.41.3-1       universally unique id library
ii  libvolume-id0  0.125-7+lenny3 libvolume_id shared library
ii  libwrap0       7.6.q-16       Wietse Venema’s TCP wrappers library
ii  libx11-6       2:1.1.5-2      X11 client-side library
ii  libx11-data    2:1.1.5-2      X11 client-side library
ii  libxapian15    1.0.7-4        Search engine library
ii  libxau6        1:1.0.3-3      X11 authorisation library
ii  libxcb-xlib0   1.1-1.2        X C Binding, Xlib/XCB interface library
ii  libxcb1        1.1-1.2        X C Binding
ii  libxdmcp6      1:1.0.2-3      X11 Display Manager Control Protocol library
ii  libxext6       2:1.0.4-2      X11 miscellaneous extension library
ii  libxmuu1       2:1.0.4-1      X11 miscellaneous micro-utility library
ii  login          1:4.1.1-6+lenn system login tools
ii  logrotate      3.7.1-5        Log rotation utility
ii  lsb-base       3.2-20         Linux Standard Base 3.2 init script function
ii  lzma           4.43-14        Compression method of 7z format in 7-Zip pro
ii  makedev        2.3.1-88       creates device files in /dev
ii  man-db         2.5.2-4        on-line manual pager
ii  manpages       3.05-1         Manual pages about using a GNU/Linux system
ii  mawk           1.3.3-11.1     a pattern scanning and text processing langu
ii  mktemp         1.5-9          tool for creating temporary files
ii  module-init-to 3.4-1          tools for managing Linux kernel modules
ii  mount          2.13.1.1-1     Tools for mounting and manipulating filesyst
ii  mtd-utils      20080508-1     Memory Technology Device Utilities
ii  ncurses-base   5.7+20081213-1 basic terminal type definitions
ii  ncurses-bin    5.7+20081213-1 terminal-related programs and man pages
ii  net-tools      1.60-22        The NET-3 networking toolkit
ii  netbase        4.34           Basic TCP/IP networking system
ii  netcat-traditi 1.10-38        TCP/IP swiss army knife
ii  openssh-blackl 0.4.1          list of default blacklisted OpenSSH RSA and
ii  openssh-blackl 0.4.1          list of non-default blacklisted OpenSSH RSA
ii  openssh-client 1:5.1p1-5      secure shell client, an rlogin/rsh/rcp repla
ii  openssh-server 1:5.1p1-5      secure shell server, an rshd replacement
ii  passwd         1:4.1.1-6+lenn change and administer password and group dat
ii  perl-base      5.10.0-19lenny minimal Perl system
ii  procps         1:3.2.7-11     /proc file system utilities
ii  readline-commo 5.2-3.1        GNU readline and history libraries, common f
ii  rsyslog        3.18.6-4       enhanced multi-threaded syslogd
ii 
sed            4.1.5-6        The GNU sed stream editor
ii  sysv-rc        2.86.ds1-61    System-V-like runlevel change mechanism
ii  sysvinit       2.86.ds1-61    System-V-like init utilities
ii  sysvinit-utils 2.86.ds1-61    System-V-like utilities
ii  tar            1.20-1+lenny1  GNU version of the tar archiving utility
ii  tasksel        2.78           Tool for selecting tasks for installation on
ii  tasksel-data   2.78           Official tasks used for installation of Debi
ii  tcpd           7.6.q-16       Wietse Venema’s TCP wrapper utilities
ii  traceroute     2.0.11-2       Traces the route taken by packets over an IP
ii  tzdata         2010o-0lenny1  time zone and daylight-saving time data
ii  udev           0.125-7+lenny3 /dev/ and hotplug management daemon
ii  update-inetd   4.31           inetd configuration file updater
ii  util-linux     2.13.1.1-1     Miscellaneous system utilities
ii  vim-common     1:7.1.314-3+le Vi IMproved – Common files
ii  vim-tiny       1:7.1.314-3+le Vi IMproved – enhanced vi editor – compact v
ii  wget           1.11.4-2+lenny retrieves files from the web
ii  whiptail       0.52.2-11.3+le Displays user-friendly dialog boxes from she
ii  x11-common     1:7.3+20       X Window System (X.Org) infrastructure
ii  xauth          1:1.0.3-2      X authentication utility
ii  zlib1g         1:1.2.3.3.dfsg compression library – runtime

 まずは,なにはともあれ,今インストールされているパッケージのアップデートを行います。debian系のディストリビューションで使われているaptitudeを利用します。
 ログを以下に載せておきます。


 まずはレポジトリのアップデートです。URLから見るに,製造元のぷらっとホームがレポジトリを持っているようです。

# aptitude update
Get:1 http://ftp.plathome.co.jp ./ Release.gpg [189B]
Get:2 http://ftp.plathome.co.jp ./ Release [1167B]                             
Get:3 http://ftp.jp.debian.org lenny Release.gpg [1033B]                       
Get:4 http://ftp.jp.debian.org lenny Release [73.8kB]                          
Get:5 http://ftp.plathome.co.jp ./ Packages [470B]                             
Get:6 http://ftp.jp.debian.org lenny/main Packages [6637kB]                    
Get:7 http://security.debian.org lenny/updates Release.gpg [835B] 
Get:8 http://security.debian.org lenny/updates Release [40.8kB]   
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Get:9 http://security.debian.org lenny/updates/main Packages [416kB]
Get:10 http://ftp.jp.debian.org lenny/main Sources [2984kB]    
Get:11 http://security.debian.org lenny/updates/main Sources [108kB]           
Fetched 10.3MB in 21s (485kB/s)                                                
Reading package lists… Done

Current status: 7 updates [+3], 21841 new [+20344].

 ここから本当のアップデートです。

# aptitude safe-upgrade
Reading package lists… Done
Building dependency tree      
Reading state information… Done
Reading extended state information      
Initializing package states… Done
Reading task descriptions… Done 
The following packages will be upgraded:
  base-files dpkg libbz2-1.0 libc6 libkrb53 libssl0.9.8 tzdata
7 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 9976kB of archives. After unpacking 12.3kB will be freed.
Do you want to continue? [Y/n/?]
Writing extended state information… Done
Get:1 http://security.debian.org lenny/updates/main libkrb53 1.6.dfsg.4~beta1-5lenny6 [502kB]
Get:2 http://ftp.jp.debian.org lenny/main base-files 5lenny8 [61.9kB]
Get:3 http://ftp.jp.debian.org lenny/main dpkg 1.14.30 [2398kB]  
Get:4 http://ftp.jp.debian.org lenny/main libc6 2.7-18lenny6 [5201kB]          
Get:5 http://ftp.jp.debian.org lenny/main libbz2-1.0 1.0.5-1+lenny1 [50.2kB]   
Get:6 http://ftp.jp.debian.org lenny/main tzdata 2010o-0lenny1 [765kB]         
Get:7 http://ftp.jp.debian.org lenny/main libssl0.9.8 0.9.8g-15+lenny9 [998kB] 
Fetched 9976kB in 14s (666kB/s)                                                
Preconfiguring packages …
(Reading database … 8446 files and directories currently installed.)
Preparing to replace base-files 5lenny7 (using …/base-files_5lenny8_powerpc.deb) …
Unpacking replacement base-files …
Processing triggers for man-db …
Setting up base-files (5lenny8) …
Installing new version of config file /etc/debian_version …
(Reading database … 8446 files and directories currently installed.)
Preparing to replace dpkg 1.14.29 (using …/dpkg_1.14.30_powerpc.deb) …
Unpacking replacement dpkg …
Processing triggers for man-db …
Setting up dpkg (1.14.30) …
(Reading database … 8446 files and directories currently installed.)
Preparing to replace libc6 2.7-18lenny4 (using …/libc6_2.7-18lenny6_powerpc.deb) …
Unpacking replacement libc6 …
Processing triggers for man-db …
Setting up libc6 (2.7-18lenny6) …
(Reading database … 8446 files and directories currently installed.)
Preparing to replace libbz2-1.0 1.0.5-1 (using …/libbz2-1.0_1.0.5-1+lenny1_powerpc.deb) …
Unpacking replacement libbz2-1.0 …
Setting up libbz2-1.0 (1.0.5-1+lenny1) …
(Reading database … 8446 files and directories currently installed.)
Preparing to replace tzdata 2010j-0lenny1 (using …/tzdata_2010o-0lenny1_all.deb) …
Unpacking replacement tzdata …
Setting up tzdata (2010o-0lenny1) …

Current default timezone: ‘Etc/UTC’
Local time is now:      Tue Dec  7 02:15:33 UTC 2010.
Universal Time is now:  Tue Dec  7 02:15:33 UTC 2010.
Run ‘dpkg-reconfigure tzdata’ if you wish to change it.

(Reading database … 8452 files and directories currently installed.)
Preparing to replace libssl0.9.8 0.9.8g-15+lenny8 (using …/libssl0.9.8_0.9.8g-15+lenny9_powerpc.deb) …
Unpacking replacement libssl0.9.8 …
Preparing to replace libkrb53 1.6.dfsg.4~beta1-5lenny4 (using …/libkrb53_1.6.dfsg.4~beta1-5lenny6_powerpc.deb) …
Unpacking replacement libkrb53 …
Setting up libssl0.9.8 (0.9.8g-15+lenny9) …
Setting up libkrb53 (1.6.dfsg.4~beta1-5lenny6) …
Reading package lists… Done            
Building dependency tree       
Reading state information… Done
Reading extended state information      
Initializing package states… Done
Reading task descriptions… Done 

Current status: 0 updates [-7].

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください