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

Add support for more package managers and AppImageLauncher #337

Merged
merged 8 commits into from
Oct 23, 2024

Conversation

AlbydST
Copy link
Contributor

@AlbydST AlbydST commented Aug 23, 2024

Description

I added support for the following package managers:

  • Bonsai
  • pkg_info (CRUX)
  • GNU Guix
  • Rad / Radula
  • URPMI
  • Birb
  • Pip

I also improved AppImage detection, now it supports AppImageLauncher and automatically detects where the files are.

Relevant Links

Bonsai Homepage
GNU Guix Homepage
Rad / Radula Homepage
Birb Homepage
Pip Homepage

I added support for the following package managers:
- Bonsai
- pkg_info (CRUX)
- GNU Guix
- Rad / Radula
- URPMI
- Birb

I also improved AppImage detection, now it supports AppImageLauncher and automatically detects where the files are.
neofetch Outdated
has anise && tot anise s --installed
has am && pac "$(am -f --less)"
has bonsai && tot bonsai list
has pkg_info && tot pkg_info -i
has guix && tot guix package --list-installed
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guix already exists below (line 2216 and 2233)

has anise && tot anise s --installed
has am && pac "$(am -f --less)"
has bonsai && tot bonsai list
Copy link
Owner

@hykilpikonna hykilpikonna Aug 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find a package manager named bonsai... searching for "bonsai linux package manager" doesn't give any meaningful results, besides from an abandoned repo (which uses the command bs instead of bonsai) and another repo that only has two stars. Which bonsai did you want to add support for?

Nevermind, I just saw the PR comment, sorry ;-;

@hykilpikonna
Copy link
Owner

pkg_info also exists above

@hykilpikonna
Copy link
Owner

Okay otherwise it's good! I don't have the environment to test the more niche package managers so I'll trust your work.

@hykilpikonna
Copy link
Owner

Okay I fixed some shellcheck errors. Please test the changes and let me know if things work / don't work as originally intended.

image

Urpmq doesn't list installed packages. `uprmq --list-media active` lists active repositories instead. Mageia uses RPM to count installed packages.
@AlbydST
Copy link
Contributor Author

AlbydST commented Aug 25, 2024

Works perfectly! (Sorry for the duplicates!)

@hykilpikonna hykilpikonna merged commit fb52256 into hykilpikonna:master Oct 23, 2024
1 check passed
@Lili1228
Copy link

Lili1228 commented Oct 25, 2024

I have just seen pip being added to my list of packages and it's actually impossible to detect how many packages are installed. pip freeze cannot distinguish between packages installed by other package managers and by itself, inflating the number drastically:

[lili@bocchi ~]$ pip freeze | wc -l # how many packages from pip does hyfetch detect?
226
[lili@bocchi ~]$ j=0; for i in $(pip freeze | cut -d= -f1); do pacman -Qq | grep -iq $i && j=$((j+1)); done; echo $j # how many of them are likely to come from my pacman?
209

@hykilpikonna
Copy link
Owner

I have just seen pip being added to my list of packages and it's actually impossible to detect how many packages are installed. pip freeze cannot distinguish between packages installed by other package managers and by itself, inflating the number drastically

Right, it is impossible to detect how many packages are specifically installed using the pip command and how many are installed using the system package manager. Though, it can still be a meaningful metric of how many python packages are installed in your current environment.

@Lili1228
Copy link

On one hand yes, on the other… is it that important to justify cluttering the "Packages" line? Same logic could go to Perl, Node.js and a few other languages.

@hykilpikonna
Copy link
Owner

On one hand yes, on the other… is it that important to justify cluttering the "Packages" line? Same logic could go to Perl, Node.js and a few other languages.

Try --package_managers off (or tiny)

@Lili1228
Copy link

Neither are valid options.

@hykilpikonna
Copy link
Owner

Neither are valid options.

image

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.

3 participants