如何在 Gentoo 上安装 PFL(电子文件)(在 Docker 中)

如何在 Gentoo 上安装 PFL(电子文件)(在 Docker 中)

我似乎不知道如何安装pfl才能获取e-file命令。

有人提到过这里pfl软件包将安装该e-file命令。

因此启动了一个 Gentoo Docker 容器并尝试了一下:

$ docker run -ti gentoo/stage3 bash
$ emerge --sync
...
$ emerge app-portage/pfl
...
$ e-file
bash: e-file: command not found

输出提到了一些关于 的内容use --autounmask-write,所以我再次尝试:

emerge --autounmask-write app-portage/pfl
$ e-file
bash: e-file: command not found

输出还提到了一些关于 的内容sys-apps/util-linux,所以我也安装了它并再次尝试:

$ emerge sys-apps/util-linux
...
$ emerge --autounmask-write app-portage/pfl
...
$ e-file
bash: e-file: command not found

我也尝试简单地运行emerge pfl: $ emerge pfl ... $ e-file bash: e-file: command not find

然后我启动了一个新的 bash 会话并再次尝试: $ bash ... $ emerge --autounmask-write app-portage/pfl ... $ e-file bash: e-file: command not find

似乎没什么作用...

它还提到IMPORTANT: 5 config files in '/etc/portage' need updating.。我不知道该怎么做。我只想在新的 docker 容器上安装一个简单的包。当然这不应该涉及手动更改配置文件,对吧?

完整输出emerge --autounmask-write app-portage/pfl

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: 4 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Calculating dependencies... done!
[ebuild  N     ] sys-libs/libcap-ng-0.8.2-r1  USE="-python -static-libs" PYTHON_TARGETS="python3_9 -python3_8" 
[ebuild   R    ] sys-apps/util-linux-2.36.2-r1  USE="caps*" 
[ebuild  N     ] app-portage/pfl-3.1-r1  USE="network-cron" PYTHON_TARGETS="python3_9 -python3_8" 

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by app-portage/pfl-3.1-r1::gentoo[network-cron]
# required by app-portage/pfl (argument)
>=sys-apps/util-linux-2.36.2-r1 caps

Autounmask changes successfully written.

 * IMPORTANT: 5 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

内容/etc/portage

$ tree /etc/portage
/etc/portage
|-- make.conf
|-- make.profile -> ../../var/db/repos/gentoo/profiles/default/linux/amd64/17.1
|-- package.use
|   `-- zz-autounmask
|-- repo.postsync.d
|   `-- example
`-- savedconfig
    `-- sys-apps
        `-- busybox-1.32.1-r1

顺便说一句,安装其他软件包也emerge app-text/tree很好用。

相关内容