Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I want to install sublime-text 2 in Arch Linux with pacman package manager; how i can do this work?

share|improve this question
You can't; it's in the AUR, not the official repos. Please read the wiki entry on the AUR. – jasonwryan Dec 5 '13 at 23:00

1 Answer 1

Since sublime-text is a package in AUR you will need to install some pacman helper like packer. To install packer:

pacman -S base-devel fakeroot jshon expac git
#create a dir somewhere, eg. $HOME
mkdir ~/packer/
cd ~/packer
#Run makepkg on the PKGBUILD as a regular user
#install the package with (as root)
pacman -U packer-*.pkg.tar.gz

Personally I go beyond this and also edit ~/.bashrc to add some aliases like these:

alias pac="sudo /usr/bin/packer -S"             # default action        - install one or more packages
alias pacu="/usr/bin/packer -Syu"               # '[u]pdate'            - upgrade all packages to their newest version
alias pacs="/usr/bin/packer -Ss"                # '[s]earch'            - search for a package using one or more keywords
alias paci="/usr/bin/packer -Si"                # '[i]nfo'              - show information about a package
alias paclo="/usr/bin/packer -Qdt"              # '[l]ist [o]rphans'    - list all packages which are orphaned
alias pacc="sudo /usr/bin/packer -Scc"          # '[c]lean cache'       - delete all not currently installed package files
alias paclf="/usr/bin/packer -Ql"               # '[l]ist [f]iles'      - list all files installed by a given package
alias pacexpl="/usr/bin/packer -D --asexp"      # 'mark as [expl]icit'  - mark one or more packages as explicitly installed 
alias pacimpl="/usr/bin/packer -D --asdep"      # 'mark as [impl]icit'  - mark one or more packages as non explicitly installed
alias pacro="/usr/bin/packer -Qtdq > /dev/null && sudo /usr/bin/packer -Rs \$(/usr/bin/packer -Qtdq | sed -e ':a;N;$!ba;s/\n/ /g')" #[r]emove [o]rphaned packages - BE CAREFULL
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.