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

Make all commands OS agnostic #44

Open
anistark opened this issue Aug 28, 2021 · 0 comments
Open

Make all commands OS agnostic #44

anistark opened this issue Aug 28, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed p3

Comments

@anistark
Copy link
Member

Currently, it works fine with ubuntu, fedora and raspberry pi devices.

Should improve the os_parse function in helpers.py

Add support for Arch Linux distros

Arch Linux distros like Manjaro are gaining popularity and we need to add support for it.

We can try aliases. Like:

alias "pacman -Sy"="apt update"
alias "pacman -Su"="apt upgrade"

Or,
We can use yaourt instead of pacman.

alias yaourt="apt install.
alias "pacman -Rns"="apt purge"
alias "pacman -Rns $(pacman -Qtdq)"="apt autoremove"

...etc.

These can then be put in ~/.bashrc or ~/.zshrc or called from a local os config file.

Here's all that I could find:

Action Arch Red Hat/Fedora Debian/Ubuntu SLES/openSUSE Gentoo
Install a package(s) pacman -S dnf install apt install zypper install emerge [-a]
Remove a package(s) pacman -Rs dnf remove apt remove zypper remove emerge -C
Search for package(s) pacman -Ss dnf search apt search zypper search emerge -S
Upgrade Packages pacman -Syu dnf upgrade apt update; apt upgrade zypper update emerge -u world
...
@anistark anistark added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers p3 labels Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed p3
Projects
None yet
Development

No branches or pull requests

1 participant