web-dev-qa-db-ja.com

一部のパッケージの「dpkg -l」出力でAMD64は何ですか?他のパッケージではありませんか?

以下は、私のUbuntuシステムでの_dpkg -l_コマンドの出力です。

_Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                            Version                                    Architecture Description
+++-===============================-==========================================-============-===============================================================================
ii  adduser                         3.113+nmu3ubuntu3                          all          add and remove users and groups
ii  apt                             1.0.1ubuntu2.19                            AMD64        commandline package manager
ii  apt-utils                       1.0.1ubuntu2.19                            AMD64        package management related utility programs
ii  base-files                      7.2ubuntu5.5                               AMD64        Debian base system miscellaneous files
ii  base-passwd                     3.5.33                                     AMD64        Debian base system master password and group files
ii  bash                            4.3-7ubuntu1.7                             AMD64        GNU Bourne Again Shell
ii  bsdutils                        1:2.20.1-5.1ubuntu20.9                     AMD64        Basic utilities from 4.4BSD-Lite
ii  busybox-initramfs               1:1.21.0-1ubuntu1                          AMD64        Standalone Shell setup for initramfs
ii  bzip2                           1.0.6-5                                    AMD64        high-quality block-sorting file compressor - utilities
ii  console-setup                   1.70ubuntu8                                all          console font and keymap setup program
ii  coreutils                       8.21-1ubuntu5.4                            AMD64        GNU core utilities
ii  cpio                            2.11+dfsg-1ubuntu1.2                       AMD64        GNU cpio -- a program to manage archives of files
ii  cron                            3.0pl1-124ubuntu2                          AMD64        process scheduling daemon
ii  dash                            0.5.7-4ubuntu1                             AMD64        POSIX-compliant Shell
ii  debconf                         1.5.51ubuntu2                              all          Debian configuration management system
ii  debconf-i18n                    1.5.51ubuntu2                              all          full internationalization support for debconf
ii  debianutils                     4.4                                        AMD64        Miscellaneous utilities specific to Debian
ii  dh-python                       1.20140128-1ubuntu8.2                      all          Debian helper tools for packaging Python libraries and applications
ii  diffutils                       1:3.3-1                                    AMD64        File comparison utilities
ii  dmsetup                         2:1.02.77-6ubuntu2                         AMD64        Linux Kernel Device Mapper userspace library
ii  dpkg                            1.17.5ubuntu5.8                            AMD64        Debian package management system
ii  e2fslibs:AMD64                  1.42.9-3ubuntu1.3                          AMD64        ext2/ext3/ext4 file system libraries
ii  e2fsprogs                       1.42.9-3ubuntu1.3                          AMD64        ext2/ext3/ext4 file system utilities
ii  eject                           2.1.5+deb1+cvs20081104-13.1ubuntu0.14.04.1 AMD64        ejects CDs and operates CD-Changers under Linux
ii  file                            1:5.14-2ubuntu3.4                          AMD64        Determines file type using "magic" numbers
ii  findutils                       4.4.2-7                                    AMD64        utilities for finding files--find, xargs
ii  gcc-4.8-base:AMD64              4.8.4-2ubuntu1~14.04.4                     AMD64        GCC, the GNU Compiler Collection (base package)
ii  gcc-4.9-base:AMD64              4.9.3-0ubuntu4                             AMD64        GCC, the GNU Compiler Collection (base package)
_

一部のパッケージ名の最後にある_:AMD64_の意味は何ですか(つまり、_e2fslibs:AMD64_または_gcc-4.8-base:AMD64_)?すべてのパッケージでアーキテクチャが指定されていないのはなぜですか?

4
BSalunke

名前の一部に:AMD64を含むアプリ、つまりzlib1g:AMD64も、何も失うことなく:i386の対応物をインストールでき、システム上で共存できます。名前で指定されていないもの、つまりxwaylandは、AMD64バージョンを削除し、i386バージョンがインストールされている場合はそれをインストールします。逆も同様です。アーキテクチャ列にallが付いているアプリは、アプリがi386AMD64の両方と互換性があり、対応するものをインストールする必要がないことを意味します。

例:

$ dpkg -l

ii  xwayland       2:1.19.6-1ub AMD64        Xwayland X server
ii  xxd            2:8.0.1453-1 AMD64        tool to make (or reverse) a hex d
ii  xz-utils       5.2.2-1.3    AMD64        XZ-format compression utilities
ii  xzoom          0.3-24build1 AMD64        magnify part of X display, with r
ii  yasm           1.3.0-2build AMD64        modular assembler with multiple s
ii  Yelp           3.26.0-1ubun AMD64        Help browser for GNOME
ii  Yelp-xsl       3.20.1-4     all          XSL stylesheets for the Yelp help
ii  zenity         3.28.1-1     AMD64        Display graphical dialog boxes fr
ii  zenity-common  3.28.1-1     all          Display graphical dialog boxes fr
ii  Zip            3.0-11build1 AMD64        Archiver for .Zip files
ii  zlib1g:AMD64   1:1.2.11.dfs AMD64        compression library - runtime
ii  zlib1g:i386    1:1.2.11.dfs i386         compression library - runtime
ii  zlib1g-dev:AMD 1:1.2.11.dfs AMD64        compression library - development

$ Sudo apt install xwayland:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libaudit1:i386 libbz2-1.0:i386 libcap-ng0:i386 libepoxy0:i386
  libfontenc1:i386 libxfont2:i386
The following packages will be REMOVED:
  ubuntu-session xwayland
The following NEW packages will be installed:
  libaudit1:i386 libbz2-1.0:i386 libcap-ng0:i386 libepoxy0:i386
  libfontenc1:i386 libxfont2:i386 xwayland:i386
0 upgraded, 7 newly installed, 2 to remove and 31 not upgraded.
Need to get 1,291 kB of archives.
After this operation, 1,799 kB of additional disk space will be used.
Do you want to continue? [Y/n] ^C


$ Sudo apt install zlib1g-dev:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libc6-dev:i386 linux-libc-dev:i386
Suggested packages:
  glibc-doc:i386
The following NEW packages will be installed:
  libc6-dev:i386 linux-libc-dev:i386 zlib1g-dev:i386
0 upgraded, 3 newly installed, 0 to remove and 31 not upgraded.
Need to get 3,435 kB of archives.
After this operation, 19.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] ^C

お役に立てれば!

2
Terrance