Bash script to Install/Uninstall from a tarball in Immutable Linux distros #307
WagnerGFX
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
|
I thought I have ended up in a configuration tar pit. By all means do what you feel is right, but just as a friendly remineder - this sounds like a painful amount of extrawork with possibly very little to gain if you want this level of control. 🙁 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Do remember the "I just did this out of curiosity" part. I learned a lot by writing this script. Bash scripting, Linux, atomic distributions and even systemd. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Bazzite, an Atomic/Immutable Linux distro that doesn't allow rpm packages directly and using
rpm-ostreeto layer the installation is recommended only as a last resort.Note
Installing with
rpm-ostreedid not give me any issues. I just did this out of curiosity, so install however you feel comfortable with.Since I wanted to learn some basic bash scripting and how Linux works, I decide to write a manual installation script to avoid layering.
The script only has simple checks and presumes a lot of things, so use it with care. It should, in theory, work on any immutable Fedora variant.
What the installer does
/tmp/usr/toetc/usr/data tousr/local//usr/local/etc/keymapper/a file holding a list of expected new files and directories./tmp/to their final location.What the uninstaller does
(sudo)Stops and Disables the service.(sudo)Uses the list created during installation to remove files and empty folders(sudo)removes the list.Scripts
INSTALL.sh
UNINSTALL.sh
Beta Was this translation helpful? Give feedback.
All reactions