How to add gpg keys
I need to add gpg keys so that I can install some packages like sublime text and others (for the future) but using the command they gives I get:
rpm-ostree: You may invoke the realor why using something likerpm
binary in/usr/libexec/rpm-ostree/wrapped/rpm
. rpm-ostree: Continuing execution in 5 seconds. error: can't create transaction lock on /usr/share/rpm/.rpm.lock (Read-only file system) error: https://download.sublimetext.com/sublimehq-rpm-pub.gpg: key 1 import failed.
dnf search openjdk
I get:
error: Note: This system is image (rpm-ostree) based. Package search is not yet implemented. For now, it's recommended to use e.g.I get its an Atomic Desktop OS but how do I import/install some programs? Thanks!toolbox
anddnf search
inside there.
28 Replies
Do not layer sublime
Can you elaborate on 'do not layer sublime' @Kyle Gospo ? From that doc, 'Containers are intended to be disposable and may run into issues where they need to be recreated.' I'm assuming these boxes are persistent until removed by the user?
I had a similar question for vscodium as the above question, and I recently layered mullvad. How does this update with the system when going through distrobox? Sure, I can pull a fedora 41 image, install vscodium, and go on my merry way, but I don't see how that helps me when fedora 42, 43, etc come out. Would I need to go set up a new distrobox each time a new major distro release is out, or when support for a distro running codium is no longer updating it? I like the idea of these atomic distro'less' options, but I am struggling to wrap my head around how this all works together.
You don't need to set up a new distrobox container unless the one you're using reaches its end of life, they have a 2-year span. You can always make a distrobox assemble script that install sublime in a new box so you can just remake it anytime you want
Even if you make it manually it's a simple reinstall, all of the configuration and plugins and license files exist in your home directory which is shared
So you're just worried about the repo and the actual package
Ah here is the meat and potatoes. So while it is using say dnf as its manager in the box, all that configuration is saved in home and can be essentially imported when setting up a box of the same flavor?
Not imported, it just uses your real home dir by defaut
I'm gonna go give that a spin for my own understanding then. So in essence I should also not have layered mullvad vpn?
If you give me just a minute I'll give you an example
Mullvad does need to be layered because it's touching root level stuff
But if they offer configs for open VPN or wire guard you can use those instead and unlayer it
Interesting. I will stick with it layered for now, I don't see it causing issues other than "longer update times", but I won't notice those anyway
distrobox create --name fedora --image ghcr.io/ublue-os/fedora-distrobox:latest
distrobox enter fedora
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
sudo dnf install sublime-text
distrobox-export --app sublime-text
exit
feel free to change the name to anything you like
and then just use that name in the enter commandThat box will just be created at the snapshot of latest right? As in it won't do any sort of updating?
the
System Update
app will update all your distrobox containers automatically
use that anytime you like
and it's not like an image, packages update in the container normally
you're just starting from a snapshot of latestYou're absolutely blowing my mind. So it will stay on the latest and update when that changes after going through system update?
yeah, heck give it a try after you finish setting up the box
ujust update
or distrobox-upgrade --all
More people need to know about this, this is so neat. I will play with it. I assume you have a comfort in cli for distrobox, will box buddy work the same?
as in just making the creation of distrobox a gui?
box buddy is a GUI helper for it, you can export the app from box buddy
and make the container
And ptyxis (our terminal) will list them all like so:
easy click to enter
oh that is so sick. I'm glad I asked, was getting disheartened by needing applications that don't exist in flathub
Thank you for all your help! @Cris16228 sorry for hijacking your post, hopefully there is something useful to be learned here for you as well
I'll just say that any other answer would be the wrong one
so, this hopefully helped
lmao
Oh last question, is flathub still preferred based on the docs if available in there?
yep
and again ,exported apps just show up and work like native ones
there's no vm, this all runs on your booted kernel
a box with no running applications uses ~3MB of RAM
Cool, thank you so much! You guys are awesome. I'll poke back here if I have issues, no news is good news lol
You're gonna kill me lol
No worries! It will help me learn more about bazzite and Fedora in general. It was a bit confusing for me but I wanted to switch to something more stable
Oh I didn't know that! Thank you, I'll check it when I'm home