• \[SOLVED\] pacman syntax


    i cant for the life of me figure out the syntax of pacman. now im not a newbie to linux, im just used to the syntax of package managers like apt and YUM and zypper so pacman is just plain daft to me. so can anybody translate the syntax of one of the 3 to pacman so i can look like less of a n00b?

  • i cant for the life of me figure out the syntax of pacman. now im not a newbie to linux, im just used to the syntax of package managers like apt and YUM and zypper so pacman is just plain daft to me. so can anybody translate the syntax of one of the 3 to pacman so i can look like less of a n00b?

  • Install a package:

    sudo pacman -S package\_name
    

    Search and install updates:

    sudo pacman -Syu
    

    Search, install updates and install another package:

    sudo pacman -Syu package1 packageN
    

    Remove package(absolute remove):

    sudo pacman -Rsndd package\_name
    

    Search a package:

    sudo pacman -Ss package\_name
    

    Look at the wiki: [https://wiki.archlinux.org/index.php/Pacman#Usage][0]">[https://wiki.archlinux.org/index.php/Pacman#Usage][1]

    [0]: <a href=
    [1]: https://wiki.archlinux.org/index.php/Pacman#Usage

    Don't forget to mark as [SOLVED], if your problem was solved!

  • Hi,

    Pacman syntax only seems difficult at first glance, I promise

    To perform a system wide update, you use “pacman -Syu” The “S” is the same as before it tells pacman you want to sync whats in the repo with what’s on your system. The “y” tells pacman that it should download the latest copy of the repo database before syncing. The “u” tells pacman that you aren’t going to list individual packages for it to sync so it should sync them all.

    Quick Note: Incase you were wondering “Well what is pacman -U” for then?" It is to sync with a package not located in a repo. So if you download a pacman .xz package from somewhere you would use “pacman -U /path/to/package.tar.xz” to install it.

    -S = Sync your system with remote pkgs (repos)
    -U = Sync your system with local pkgs (files you downloaded or web url to download package)

    Hope that makes it easier to understand

    This link will probably be very helpful to you as well: [https://wiki.archlinux.org/index.php/Pacman_Rosetta][0]">[https://wiki.archlinux.org/index.php/Pacman_Rosetta][1]

    PS> I recommend using the GUI program pacmanXG until you get more familiar with pacman. It makes things alot easier!

    Best Regards,

    [0]: <a href=
    [1]: https://wiki.archlinux.org/index.php/Pacman_Rosetta

  • ok i think i got pacman figured out now. thankyou!

Posts 5Views 755
Log in to reply