Add support for more package managers
What's supported so far:
- [x] Linux/linuxbrew
- [x] Debian/apt
- [x] RedHat/dnf
- [x] Gentoo/emerge
- [x] SUSE/zypper
- [x] Alpine/apk
- [x] Void/xbps (handled in #330)
- [x] Linux/pkcon (#pacapt/226, handled in #538)
What isn't yet supported in pacaptr, but supported in pacapt:
- [ ] Exherbo/cave
- [ ] Clear/swupd
- [ ] SliTaz/tazpkg
I'd personally like to see support for Termux's pkg PM, which is essentially a wrapper around apt.
@ItsAleph Thanks for your feedback!
Unfortunately, I haven't been using Termux a lot lately. May I ask what is missing from current apt support when running pacaptr from Termux?
apt listlists all packages available unless--installedwas passed.pkginstead of thelistcommand have two separatelist-all(acts likeapt list) andlist-installed(self-describing).apthas both--helpflag andhelpcommand, whereaspkgonly has command. Additionally,pkgdoesn't have man pages.pkgdoesn't have theautoremovecommand (onlyautoclean).pkgdoesn't have thefull-upgradecommand.pkg upgradeinstead always asks user what to do in case of a conflict (i suspect this behaviour is the same asapt upgrade, but not sure since i never used it).pkgdoesn't havesatisfyandedit-sourcescommands.pkghas several command shortcuts likepkg ininstead ofpkg installandpkg rminstead ofpkg remove.
Termux Wiki article on package management in Termux, including what is pkg and why it is (highly) recommended over apt.
If i understand correctly, the only thing missing from pkg support is that it should be preferred over apt by pacaptr if running inside Termux ($HOME or $PREFIX start with /data/data/com.termux/ or one of the following variables are defined: TERMUX_VERSION, TERMUX_IS_DEBUGGABLE_BUILD, TERMUX_MAIN_PACKAGE_FORMAT, TERMUX_API_VERSION, TERMUX_APK_RELEASE, TERMUX_APP_PID).
@ItsAleph I've created a new issue for you at https://github.com/rami3l/pacaptr/issues/576, let's continue our discussion there!