Removing files pulled in by packages reliably?

So, the cosmic-greeter package also pulls in the entire Cosmic desktop, whilst I can't change that, is there a good way to make absolutely sure that the COSMIC Session won't appear on the greeter? Whilst the lazy way of just blanking out the session's .desktop file worked for sway, that does not seem to apply to the COSMIC session, which still appears in the image, so this is not consistent enough. Removing the other cosmic-* packages isn't possible as that throws an rpm-ostree conflict (duh) Anyone got ideas?
Solution:
i misremembered we added remove: to the files module, but in any case, this is how easy it should be ```yaml type: script snippets: - rm /path/to/cosmic.desktop...
Jump to solution
14 Replies
Luke Skywunker
You could try removing the .desktop file completely instead of blanking it out
⚞Alexia⚟
⚞Alexia⚟OP7d ago
being honest here I'm a bit lazy and assumed that would require a custom module either that or I've skipped something by accident
Solution
xyny
xyny7d ago
i misremembered we added remove: to the files module, but in any case, this is how easy it should be
type: script
snippets:
- rm /path/to/cosmic.desktop
type: script
snippets:
- rm /path/to/cosmic.desktop
xyny
xyny7d ago
make sure to add that after the package installation in the module list another thing you could try if you're on F41+ is installing what you want with dnf5 and trying to find out if it installs the unwanted dependencies or if it can be configured to not install some of those
⚞Alexia⚟
⚞Alexia⚟OP6d ago
oh hey that's neat, thanks for the heads-up! <3 I can use dnf5 since F41 despite being atomic? Is that what you're trying to say here?
Luke Skywunker
Just make sure to specify dnf5 specifically cause dnf is cli-wrapped by rpm-ostree on Ublue base images
xyny
xyny6d ago
yes, fedora atomic is slowly migrating from rpm-ostree to bootc & dnf5 and dnf5 can now be used to install packages on atomic F41+
⚞Alexia⚟
⚞Alexia⚟OP6d ago
oh thats actually kind of cool, does this require any additional setup or could I do this on a live system?
xyny
xyny6d ago
AFAIK the commands should jusi be available to you on the latest version try running bootc status
⚞Alexia⚟
⚞Alexia⚟OP6d ago
oh yeah that does work, though dnf5 hits the RPM Lockfile being on a read-only FS (which makes sense, that is kinda the point)
xyny
xyny6d ago
yeah idk if local layering works yet, but in the image build it should work we're actually building a module to replace rpm-ostree with that
⚞Alexia⚟
⚞Alexia⚟OP6d ago
that's actually hella cool, thanks for telling me! I wonder if dnf5 has any speed advantages over using rpm-ostree
xyny
xyny6d ago
yes, and dependency resolution too i hear that installing steam should just work whereas before it was hellish
⚞Alexia⚟
⚞Alexia⚟OP6d ago
hell yeah, I'll be playing around with that on a separate branch :P

Did you find this page helpful?