• How to paste apt-get and make the terminal read like pacman commands.

    Hi. I’ve tried to edit my .bashrc file so that I can paste Debian based apt-commands directly in my terminal and make the terminal treat them as Pacman commands.
    This is useful when I’m following guides originally written for Debian based systems.
    I have tried to do something like this: alias sudo apt-get update='sudo pacman -Syy’
    And this: alias apt-get update='pacman -Syy’
    But that didn’t work, may someone point me in the right direction here?

  • @catsndogs
    First of all, I’d recommend learning the pacman syntax, since the commands are not exactly one to one.

    There’s a comparison list of commands here: https://wiki.archlinux.org/index.php/Pacman/Rosetta

    If you still wish to make pacman behave like apt-get, I’d recommend using bash functions instead of aliases, since they are much more versatile.


        # Assume command line as: apt-get <command> [parameters]
        local command="$1"
        case "$command" in
            # Add more of your favourite commands here!
            # See also: https://wiki.archlinux.org/index.php/Pacman/Rosetta
            # for more help about the commands.
                sudo pacman -S --needed "[email protected]"
                sudo pacman -Rsn "[email protected]"
                sudo pacman -Syy
                sudo pacman -Su
  • @manuel Solved! :-) Thanx man.

  • @catsndogs So if you feel this is solved, please mark the thread as such. There’s a button below for that. :)

  • Sorry, didn’t notice you already marked it! :)

  • @manuel @developers :-) I’ve also tried to edit the tags for the post several times from both FF and Chromium without luck, I get a notice that says the connection being lost even if my line is quite ok. It ended in a notice that told me that Akismet has flagged my post as spam.

  • @catsndogs
    This is a known bug in the forum software. Hopefully it gets resolved soon!

  • @manuel ok nice to know!

  • Oh! That last spam stuff is news to me!

  • yea guess it’s because I tried to post the same post over and over again, and Akismet did notice it but the forum software did not.

pacman122 terminal46 paste3 apt-get2 Posts 10Views 942
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.