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

[FEAT] Add AM package manager. #771

Closed
Samueru-sama opened this issue Apr 3, 2024 · 5 comments
Closed

[FEAT] Add AM package manager. #771

Samueru-sama opened this issue Apr 3, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@Samueru-sama
Copy link

AM is a package manager for appimages and other portable applications.

https://github.com/ivan-hc/AM

AM prints the number of packages installed by running am -f --less.

@Samueru-sama Samueru-sama added the enhancement New feature or request label Apr 3, 2024
@CarterLi
Copy link
Member

CarterLi commented Apr 3, 2024

Does ls /opt/*/AM-updater | wc -l correctly print the number of packages installed by AM?

@Samueru-sama
Copy link
Author

Samueru-sama commented Apr 3, 2024

ls /opt/*/AM-updater | wc -l

Maybe (EDIT: Better said no idea since I haven't test it that), but if it works it will only work when AM is used as AM, it also has a portable mode (AppMan) which makes it a bit more complicated.

You can get the packages directory by reading the path in $XDG_CONFIG_HOME/appman/appman-config or ~/.config/appman/appman-config and then to get the number of packages it does this:

cd /path/to/packages/dir &&
find . -type f -name 'remove' 2>/dev/null | sed -r 's|/[^/]+$||' | sort | uniq | wc -l

And that prints the total number of packages installed. That is what AM itself does.

@CarterLi
Copy link
Member

CarterLi commented Apr 3, 2024

Can you paste the content of $XDG_CONFIG_HOME/appman/appman-config here?

@CarterLi
Copy link
Member

CarterLi commented Apr 3, 2024

I installed AM myself. The file $XDG_CONFIG_HOME/appman/appman-config doesn't exist

@Samueru-sama
Copy link
Author

Just woke up.

Can you paste the content of $XDG_CONFIG_HOME/appman/appman-config here?

It just contains this .local/opt (In my case I have the packages in $HOME/.local/opt).

I installed AM myself. The file $XDG_CONFIG_HOME/appman/appman-config doesn't exist

You would need to run am with this alias alias am=/opt/am/appman (or just directly run the script in that path, also without sudo btw) and that should be enough for it to ask for the path to generate the config file.

Thanks for adding AM support! I just tested fastfetch-git, it does detect the packages in /opt/am/ but doesn't detect the appman packages, and I just noticed that will be a bit harder to implement because in this case am is an alias to a script that isn't in PATH lol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants