« Back to projectatomic.io
Ask Your Question

How to install package X ?

asked 2014-04-21 07:34:29 +0000

Henk gravatar image

updated 2014-04-23 14:56:09 +0000

This might be a duplicate of http://ask.projectatomic.io/en/question/5/what-happens-to-new-packages-when-i-run-rpm-ostree-upgrade/?answer=17#post-id-17 but I'll ask anyway.

I noticed my VM on VBox was running way out of time after 17 hours, so I tried to install package "ntpdate" with yum. FYI: This was in the HOST, not in the container.
First there is this GPG-key error:

GPG key retrieval failed: [Errno 14]curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-20-x86_64"

I "solved" this with a symlink to RPM-GPG-KEY-fedora-20-secondary and tried again.

error: cannot open Packages index using db5 - Read-only file system (30)  
error: cannot open Packages database in /var/lib/rpm

No luck.
So, what is the right way to install extra packages in the host (not a container)?

(Or sync time of the host? Maybe install NTP-support inside the images, please!)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-04-21 15:48:11 +0000

walters gravatar image

A clarification: Containers are a docker concept, and you actually can use yum to install packages inside them (really you create a new image when you do so). Not only can you but it's encouraged as a way to create your own containers derived from base images, or to customize an existing image.

The rpm-ostree tooling is only for the host OS at the moment, and is entirely distinct from the toolchain inside containers. Installing packages on top of a base tree is on the roadmap there.

edit flag offensive delete link more


FYI - I am aware of the packages INSIDE a container. This is about packages in the machine HOSTing the containers.

Henk ( 2014-04-21 21:27:02 +0000 )edit

A future update to rpm-ostree will support layered package installation on the host. The thing that makes it nontrivial is doing it *while still preserving the ability to rollback*. but stay tuned on this topic!

walters ( 2014-04-22 20:17:52 +0000 )edit

Has there been any update on this? I have several hard requirements to add to the host such as audit. Right now exploring building from http://www.projectatomic.io/docs/compose-your-own-tree/ however seems like a very roundabout way at the moment.

Adrian ( 2016-04-20 17:18:27 +0000 )edit

This blog post on customization is also helpful for those wanting custom CentOS trees http://developers.redhat.com/blog/2015/01/08/creating-custom-atomic-trees-images-and-installers-part-1/

Adrian ( 2016-04-20 17:30:48 +0000 )edit

answered 2014-04-21 13:09:42 +0000

jzb gravatar image

updated 2014-04-21 16:23:38 +0000

Right now, there's no way to install additional packages in a container. Currently, you need to create the container with the packages you need - but that is not the long-term plan. There's work going on to enable installing packages on top of an rpm-ostree container, and we'll make sure to keep updating the blog to notify users when that happens.

(See Colin's answer above - I should obviously wait until I've had my coffee until answering forum posts!)

(Also, the request for ntp support is noted - I'll be sure to pass that on!)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools



Asked: 2014-04-21 07:34:29 +0000

Seen: 2,319 times

Last updated: Apr 23 '14