Skip to content

Instantly share code, notes, and snippets.

@EzioisAwesome56
Last active January 13, 2023 15:52
Show Gist options
  • Save EzioisAwesome56/1fc15739eea51b98f925a4d95e3f5eba to your computer and use it in GitHub Desktop.
Save EzioisAwesome56/1fc15739eea51b98f925a4d95e3f5eba to your computer and use it in GitHub Desktop.
pacapt apt -> pacman syntax
#!/bin/bash
# apt syntax -> pacman wrapper
case "$1" in
"install")
pacman -S ${@:2}
;;
"remove")
pacman -R ${@:2}
;;
"purge")
pacman -Rsc ${@:2}
;;
"update")
pacman -Syu
;;
"upgrade")
pacman -Syu
;;
"search")
pacman -Ss ${@:2}
;;
*)
echo "Error: invalid operation \"$1\""
;;
esac

pacapt

a bash script to wrap apt syntax into pacman commands

install

write the above script into a file called apt. copy it into /usr/bin. Apply the execution permission with chmod +x /usr/bin/apt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment