-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall-yaourt
74 lines (39 loc) · 1.7 KB
/
install-yaourt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
### ==========================================
### A) Install base development utilities
### ==========================================
$ pacman -S base-devel
$ pacman -S binutils
### ==========================================
### B) Install Package Query
### ==========================================
Yaourt depends on another AUR package called Package Query which we need to install first.
$ curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
$ tar zxvf package-query.tar.gz
$ cd package-query
$ makepkg -si
Install the tar.xz package you just built with the following command.
$ sudo pacman -U package-query-1.8-1-x86_64.pkg.tar.xz
### ===========================================
### C) Install Yaourt
### ===========================================
#Source: http://archlinux.fr/yaourt-en
$ curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
$ tar zxvf yaourt.tar.gz
$ cd yaourt
$ makepkg -si
Install the tar.xz package you just built with the following command.
$ sudo pacman -U yaourt-1.7-1-any.pkg.tar.xz
$ pacman -Sy yaourt
### ===========================================
### Correct way to uninstall software in Arch
### ===========================================
#Source: http://www.linuxandlife.com/2011/12/right-way-to-uninstall-software-in-arch.html
Remove the package and its dependencies and all the settings of the application.
$ sudo pacman -Rns packagename
Check if there is any orphan packages on the system.
$ sudo pacman -Qdt
To remove all the orphan packages.
$ sudo pacman -Rns $(pacman -Qdtq)
To clean cache and outdated packages.
#Note: Do this after checking that new packages are working.
$ sudo pacman -Scc