-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bunch of improvements to the project #41
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I added support for: - Gentoo (Portage) - Void (XBPS) - NixOS (Nix) - Slackware (Slackpkg) - Alpine (APK) I also modified the script to check which privilege escalation software is available and use that for commands that require running as root. Currently supports both sudo and doas, and fallbacks to su -c if neither is present.
I created a script that removes obsolete packages. Currently supported systems include: - Debian (apt-get) - Fedora (DNF) - Arch (Pacman) - OpenSUSE (Zypper) - Gentoo (emerge) - Void (XBPS) - NixOS (nix-env) - Slackware (SlackPKG) - Alpine (APK)
I added the "Remove Obsolete Packages" entry to the list.rs file so that it can be easly executed. I also modified the other entries a bit so that they don't rely on bash to directly run the output of curl but instead pipe it through sh for cross-shell compatibility.
Removed sudo from requirements since the script now can also run with doas or even just su.
I applied a few changes to common-script.sh: - Removed sudo from requirements, that's because I also - Added support for doas and regular su if sudo is not found - Added a bunch of package managers to the list, of course other scripts don't need to support all of them. This is just an example.
Removed sudo from requirements since we now have support for doas and regular su aswell.
Removed sudo from requirements since the script now allow execution with doas and regular su aswell.
Removed sudo from requirements since the script now also works with doas and regular su.
Removed sudo from requirements since the script now also works with doas and regular su.
Removed sudo from requirements since the script now allows execution with doas and regular su aswell.
I added a lot of userful information to README.md, such as - Current Linutil features - Currently supported systems - How to contribute I also added myself to the credits ;)
Now the "variables" are a little bit more readable.
ghost
mentioned this pull request
Jul 17, 2024
Love a lot of the ideas but these really need to be seperate PRs. there are conflicts with some of the updates so it is best to break out each big fix into it's own pr. Ex. Orphan PR, list.rs fixes, change sudo to SUDOCMD. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
General Improvements
Removal of Obsolete Packages
I added a script that automatically removes Obsolete Packages (orphans) from your system.
Currently, it supports:
Project README
I added a bunch of userful information to the Project's README, such as:
I also added myself to the credits ;)
List.rs
In addition to adding the obsolete package remover to list.rs, I also made it so that the scripts that are cURLed from the web (e.g. mybash) are piped to
sh
instead of being ran withbash -c
. This makes it so that they don't rely onbash
.System Update Script
Added support for:
Common Script
Added other package managers as an example: