söndag 19 april 2015

archlinux - How install packages & more

-----------------------------------
- to install ex firefox run:  -
----------------------------------
-
pacman -S firefox

------------------------------------------------------
- but pacman only take offical packages  -
------------------------------------------------------

then we got yaourt, pacaur, packer
packer -S vlc spotify <--- AND more....

-------------------------------------------
- Get a list of installed packages -
-------------------------------------------

pacman -Q

---------------------------------------
- View package dependencies -
---------------------------------------

pactree spotify

--------------------------------------------------------
- upgrade from both official repos & AUR:  -
--------------------------------------------------------

pacman -S packer
packer -Syu

----------------------------
- Remove a package  -
----------------------------

pacman -R package_name

----------------------------------------------------------
- Remove a package with dependencies        -
- that are not being used by other packages -
----------------------------------------------------------

pacman -Rs package_name

---------------------------------------------------------
- Remove a package with all dependencies  -
---------------------------------------------------------

pacman -Rsc package_name

-------------------------------------------------------------------
- Remove a package and its configuration files too: -
-------------------------------------------------------------------

 pacman -Rn package_name

 --------------------------------------------------------------
 - Remove uninstalled packages from the cache -
 --------------------------------------------------------------

 pacman -Sc

 ---------------------------------------------------
 - Remove all packages from the cache -
 ---------------------------------------------------

 pacman -Scc

 ------------------------------------------------
 - you can always do things manually -

 - using the desired PKGBUILD.         -
 -------------------------------------------------

 All you need to do is compile it from source
using makepkg and then install it via pacman.
 For example:

 $ mkdir ~/pkgs && cd ~/pkgs
 $ wget https://aur.archlinux.org/packages/pa/pacaur/PKGBUILD
 $ makepkg -s
 $ sudo pacman -U pacaur-4.2.14-1-any.pkg.tar.xz

seems like arch build source more then debian...
thats... great!!...



"in debian/ubuntu we run apt-get update
"
now in arch we do: pacman -Syu

"in debian/ubuntu we did this:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
"

now we got arch we do like this:

sudo packer sublime-text-dev



hynten@speed-mailer.com
Skicka en kommentar