Skip to content
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
wants to merge 27 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 16, 2024

General Improvements

  • Added support for doas and regular su to all scripts
  • Removed sudo from requirements everywhere
  • Fixed spelling of AUR
  • Updated Linutil binary

Removal of Obsolete Packages

I added a script that automatically removes Obsolete Packages (orphans) from your system.
Currently, it supports:

  • Debian (APT)
  • Fedora (DNF)
  • Arch (Pacman)
  • OpenSUSE (zypper)
  • Gentoo (Portage)
  • Void (XBPS)
  • NixOS and other systems with Nix
  • Slackware (SlackPKG)
  • Alpine (APK)

Project README

I added a bunch of userful information to the Project's README, such as:

  • Linutil's current features
  • Currently Supported Systems
  • How to contribute to the project

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 with bash -c. This makes it so that they don't rely on bash.

System Update Script

Added support for:

  • Gentoo (Portage)
  • Void (XBPS)
  • NixOS and other systems with Nix
  • Slackware (SlackPKG)
  • Alpine (APK)

Common Script

Added other package managers as an example:

  • XBPS
  • Nix
  • SlackPKG
  • APK
  • Eopkg
  • YUM
  • Rad
  • KISS

AlbydS and others added 27 commits July 16, 2024 13:36
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.
@ChrisTitusTech
Copy link
Owner

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant