On 2014年07月09日 16:25, Thomas Lange wrote:
On Wed, 09 Jul 2014 12:51:09 +0900, Kenji Okimoto <okim...@clear-code.com> said:
> The command yum doesn't work in chroot.
I cannot confirm this. It works well for me.
Hmm, I re-created chroot by rinse.
But I cannot confirm this, too.
However I think this chroot doesn't satisfy dependencies for yum package.
See below, please.
$ sudo rinse --arch amd64 \
--distribution centos-7 --directory ~/tmp/centos-7-x86_64
$ sudo chroot ~/tmp/centos-7-x86_64 bash
# yum makecache
Loaded plugins: fastestmirror, keys, protectbase
base
| 3.6 kB 00:00:00
extras
| 3.3 kB 00:00:00
updates
| 3.4 kB 00:00:00
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Metadata Cache Created
# echo $?
0
# yum deplist yum
Loaded plugins: fastestmirror, keys, protectbase
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
0 packages excluded due to repository protections
package: yum.noarch 3.4.3-118.el7.centos
dependency: /bin/bash
provider: bash.x86_64 4.2.45-5.el7
dependency: /usr/bin/python
provider: python.x86_64 2.7.5-16.el7
dependency: cpio
provider: cpio.x86_64 2.11-22.el7
dependency: diffutils
provider: diffutils.x86_64 3.3-4.el7
provider: diffutils.i686 3.3-4.el7
dependency: pygpgme
provider: pygpgme.x86_64 0.3-9.el7
dependency: pyliblzma
provider: pyliblzma.x86_64 0.5.3-11.el7
dependency: python >= 2.4
provider: python.x86_64 2.7.5-16.el7
dependency: python(abi) = 2.7
provider: python.x86_64 2.7.5-16.el7
dependency: python-iniparse
provider: python-iniparse.noarch 0.4-9.el7
dependency: python-sqlite
provider: python.x86_64 2.7.5-16.el7
dependency: python-urlgrabber >= 3.9.0-8
provider: python-urlgrabber.noarch 3.10-4.el7
dependency: pyxattr
provider: pyxattr.x86_64 0.5.1-5.el7
dependency: rpm >= 4.4.2
provider: rpm.x86_64 4.11.1-16.el7
dependency: rpm-python
provider: rpm-python.x86_64 4.11.1-16.el7
dependency: yum-metadata-parser >= 1.1.0
provider: yum-metadata-parser.x86_64 1.1.4-10.el7
dependency: yum-plugin-fastestmirror
provider: yum-plugin-fastestmirror.noarch 1.1.31-24.el7
# yum reinstall yum
Loaded plugins: fastestmirror, keys, protectbase
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
0 packages excluded due to repository protections
Resolving Dependencies
--> Running transaction check
---> Package yum.noarch 0:3.4.3-118.el7.centos will be reinstalled
--> Processing Dependency: pyxattr for package:
yum-3.4.3-118.el7.centos.noarch
--> Processing Dependency: pyliblzma for package:
yum-3.4.3-118.el7.centos.noarch
--> Processing Dependency: diffutils for package:
yum-3.4.3-118.el7.centos.noarch
--> Processing Dependency: cpio for package: yum-3.4.3-118.el7.centos.noarch
--> Running transaction check
---> Package cpio.x86_64 0:2.11-22.el7 will be installed
---> Package diffutils.x86_64 0:3.3-4.el7 will be installed
---> Package pyliblzma.x86_64 0:0.5.3-11.el7 will be installed
---> Package pyxattr.x86_64 0:0.5.1-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================================================================================
Package Arch
Version
Repository Size
===================================================================================================================================================================================================================
Reinstalling:
yum noarch
3.4.3-118.el7.centos
base 1.2 M
Installing for dependencies:
cpio x86_64
2.11-22.el7
base 210 k
diffutils x86_64
3.3-4.el7
base 322 k
pyliblzma x86_64
0.5.3-11.el7
base 47 k
pyxattr x86_64
0.5.1-5.el7
base 28 k
Transaction Summary
===================================================================================================================================================================================================================
Install ( 4 Dependent packages)
Reinstall 1 Package
Total download size: 1.8 M
Installed size: 7.4 M
Is this ok [y/d/N]: N
Exiting on user command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2014-07-10.01-07.IsIh4P.yumtx
--
Kenji Okimoto <okim...@clear-code.com>
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org