-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathusing-yum
167 lines (77 loc) · 4.76 KB
/
using-yum
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
1. Running the appropriate command as 'sudo', list all of the packages currently installed on the system using the appropriate package management command and options.
user@linuxacademy:~$ sudo yum list installed
(Output)
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: repos.dfw.quadranet.com
* epel: mirror.compevo.com
* extras: repos.dfw.quadranet.com
* updates: repos.dfw.quadranet.com
Installed Packages
GConf2.x86_64 3.2.6-8.el7 @base/$releasever
GeoIP.x86_64 1.5.0-9.el7 @base
ModemManager-glib.x86_64 1.1.0-6.git20130913.el7 @base/$releasever
NetworkManager.x86_64 1:1.0.0-14.git20150121.b4ea599c.el7 @base/$releasever
(Output) NOTE: Your output will differ based on the packages installed on your system
2. The package called 'nano' will be installed on your system. Using the appropriate package management command and options, list the files and directories that are installed with that package.
user@linuxacademy:~$ sudo rpm -ql nano
(Output)
/etc/nanorc
/usr/bin/nano
/usr/bin/rnano
/usr/share/doc/nano-2.3.1
.....
3. Using the standard Red Hat/CentOS based "update manager", install and then remove the package called 'nano' and note the results. Install the utilities package for the 'update manager' as discussed in the course so we can download packages.
user@linuxacademy:~$ sudo yum install nano
(Output)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
spell
The following NEW packages will be installed:
nano
0 upgraded, 1 newly installed, 0 to remove and 30 not upgraded.
Need to get 173 kB of archives.
(Output) NOTE: Package installation will proceed with more output, this is the first 10 lines...
user@linuxacademy:~$ sudo yum autoremove nano
(Output)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nano*
0 upgraded, 0 newly installed, 1 to remove and 30 not upgraded.
After this operation, 610 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Output) NOTE: Package removal will continue with more output, this is the first 10 lines
user@linuxacademy:~$ sudo yum install yum-utils
4. Using the tool from Step #3, execute the command with the appropriate options to DOWNLOAD (but not install) the 'nano' package. Once downloaded, use the standard package management command as in Steps #1 and #2 to install the downloaded package.
user@linuxacademy:~$ sudo yumdownloader nano
user@linuxacademy:~$ ls -al nano*
(Output) -rw-r--r-- 1 root root 172710 Jul 16 2014 nano_2.2.6-3_amd64.rpm
user@linuxacademy:~$ sudo rpm -ivh nano_2.2.6-3_amd64.rpm
(Output)
Preparing to unpack nano_2.2.6-3_amd64.deb ...
Unpacking nano (2.2.6-3) ...
Setting up nano (2.2.6-3) ...
update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode
update-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode
Processing triggers for install-info (5.2.0.dfsg.1-6) ...
Processing triggers for doc-base (0.10.6) ...
Processing 2 added doc-base files...
Registering documents with scrollkeeper...
Processing triggers for man-db (2.7.0.2-5) ...
(Output) NOTE: Your version and output may differ depending on the distribution and version used
5. Using the 'update management' tool (from Steps #3 and #4), completely remove the 'nano' package. Use the appropriate options to remove the package and all configuration files that may have been added or changed.
user@linuxacademy:~$ sudo yum autoremove nano
(Output)
The following packages will be REMOVED:
nano*
0 upgraded, 0 newly installed, 1 to remove and 30 not upgraded.
After this operation, 610 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Output) NOTE: Your output will continue, these are just the initial lines to expect
6. Clean up your workspace by issuing the appropriate options to the 'update management' tool (will remove downloaded package files).
user@linuxacademy:~$ sudo yum clean all
(Output) No output unless there are errors