ThatOneCalculator/NerdFetch

Slackware support?

xexpanderx opened this issue · 16 comments

Any chance you will add support for Slackware? :)

Thx!

Never used Slackware before. What's the package manager?

slackpkg is the official one (there is also pkgtools but that is more basic).

Can you send the command to list your packages? Piping it into wc -l should result in the correct number of packages.

Nvm I can ls /var/log/packages/ | wc -l and just check if slackpkg exists. I'll add a commit when I'm on my computer (I'm on mobile rn)

Hey, yes, doing ls on /var/log/packages/ should be enough.

@xexpanderx ok can you clone and test it? Let me know if it all goes good :)

Screenshot_2021-01-02_21-33-24

Thx, (rpm) still shows up though.

slackpkg is located at /usr/sbin/slackpkg btw.

Ah, didn't realize that it could've shown rpm. One sec.

Hm, slackpkg is close to the end on line 38, after rpm. Are you sure you have the latest version? And can you send the output of which slackpkg?

Yes, the thing is, slackpkg is located at /usr/sbin, not /usr/bin. So, as a regular user, I dont have /usr/sbin/ in my path. So, a which will not find slackpkg. Maybe I can just add /usr/sbin/ to my PATH.

I added /usr/sbin/slackpkg on that line instead of slackpkg. Thanks for your help!

Ok! So it should be

manager=$(which nix-env yum zypper dnf rpm apt brew port pacman xbps-query pkg emerge cave apk kiss pmm /usr/sbin/slackpkg yay cpm eopkg 2>/dev/null)

?

Hi, yes, sorry, exactly like that.

Cool. I'll close this for now, assuming that everything works.