-
Notifications
You must be signed in to change notification settings - Fork 1
/
webpage.download.rpm.xml
97 lines (86 loc) · 2.34 KB
/
webpage.download.rpm.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<webpage id="yum]">
<config param="desc" value="EPUB Download" />
<config param="rcsdate" value="$Date: 2012-03-15 18:12:34 +0800 (Thu, 15 Mar 2012) $" />
<head>
<title>Yum</title>
<titleabbrev>Yum Package</titleabbrev>
<summary>Yum Package</summary>
<keywords>Linux, FreeBSD, MySQL, PostgreSQL, Lighttpd, Nginx, DFS, Spring, Varnish</keywords>
</head>
<para>在 CentOS 中使用 yum 下载 netkiller 手札 电子书</para>
<webtoc />
<section>
<title>2017 版</title>
<screen>
<![CDATA[
cat > /etc/yum.repos.d/netkiller.repo <<EOF
[netkiller]
name=Netkiller Free Books
baseurl=http://www.netkiller.cn/download/rpm/
enabled=1
gpgcheck=0
gpgkey=
EOF
# yum repolist
# yum search netkiller
# yum install netkiller-centos
]]>
</screen>
<para>一次性使用*通配符安装所有文档</para>
<screen>
<![CDATA[
[root@netkiller ~]# yum install netkiller-*
[root@netkiller ~]# ll /usr/share/doc/netkiller/
total 32
drwxr-xr-x 10 root root 4096 2018-01-05 22:31 architect
drwxr-xr-x 12 root root 4096 2018-01-05 22:31 database
drwxr-xr-x 6 root root 4096 2018-01-05 22:31 freebsd
drwxr-xr-x 26 root root 4096 2018-01-05 22:31 linux
drwxr-xr-x 22 root root 4096 2018-01-05 22:31 management
drwxr-xr-x 17 root root 4096 2018-01-05 22:31 mysql
drwxr-xr-x 9 root root 4096 2018-01-05 22:31 nosql
drwxr-xr-x 3 root root 4096 2018-01-05 22:31 postgresql
]]>
</screen>
</section>
<section id="rpm">
<title>2016 版</title>
<para>
<ulink url="http://netkiller.sourceforge.net/pub/repo/" />
</para>
<screen>
<![CDATA[
# cat >> /etc/yum.repos.d/netkiller.repo <<EOF
[netkiller]
name=Netkiller Free Books
baseurl=http://netkiller.sourceforge.net/pub/repo/
enabled=1
gpgcheck=0
gpgkey=
EOF
]]>
</screen>
<para>查找包</para>
<screen>
<![CDATA[
# yum search netkiller
netkiller-centos.x86_64 : Netkiller centos Cookbook
netkiller-cryptography.x86_64 : Netkiller cryptography Cookbook
netkiller-docbook.x86_64 : Netkiller docbook Cookbook
]]>
</screen>
<para>安装包</para>
<screen>
yum install netkiller-docbook
</screen>
<itemizedlist>
<listitem>
<para>RPM 安装包</para>
<para>
<ulink url="http://rpmfind.net/linux/RPM/sourceforge/n/ne/netkiller/netkiller-1.0.1-1.x86_64.html" />
</para>
</listitem>
</itemizedlist>
</section>
</webpage>