|
8 | 8 | <a xmlns="" href="http://my.oschina.net/neochen/">OSChina 博客</a> | |
9 | 9 | <a xmlns="" href="https://www.facebook.com/bg7nyt">Facebook</a> | |
10 | 10 | <a xmlns="" href="http://cn.linkedin.com/in/netkiller/">Linkedin</a> | |
11 | | - <a xmlns="" href="mailto:netkiller@msn.com">Email</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">3.2. Apt-Get</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="package.html">上一页</a> </td><th width="60%" align="center">第 3 章 Package Management</th><td width="20%" align="right"> <a accesskey="n" href="aptitude.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="http://ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.com&type=watch&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="http://ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.com&type=fork&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="http://ghbtns.com/github-btn.html?user=netkiller&type=follow&count=true&size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td></tr></table><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="apt-get"></a>3.2. Apt-Get</h2></div></div></div><p>apt 命令默认从cdrom安装</p><p>注释/etc/apt/sources.list中的deb cdrom项, apt会从互联网上安装</p><pre class="screen"> |
| 11 | + <a xmlns="" href="https://zb.oschina.net/profile/725072/market">作品与服务</a> | |
| 12 | + <a xmlns="" href="mailto:netkiller@msn.com">Email</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">3.2. Apt-Get</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="package.html">上一页</a> </td><th width="60%" align="center">第 3 章 Package Management</th><td width="20%" align="right"> <a accesskey="n" href="aptitude.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="http://ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.io&type=watch&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="http://ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.io&type=fork&count=true&size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="http://ghbtns.com/github-btn.html?user=netkiller&type=follow&count=true&size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td></tr></table><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="apt-get"></a>3.2. Apt-Get</h2></div></div></div><p>apt 命令默认从cdrom安装</p><p>注释/etc/apt/sources.list中的deb cdrom项, apt会从互联网上安装</p><pre class="screen"> |
12 | 13 | netkiller@Linux-server:~$ sudo vi /etc/apt/sources.list |
13 | 14 | # deb cdrom:[Ubuntu-Server 6.10 _Edgy Eft_ - Release i386 (20061025.1)]/ edgy main restricted |
14 | | - </pre><span class="command"><strong>apt-setup </strong></span><p>安装是首先会下载包到/var/cache/apt/archives/目录</p><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm46094770963824"></a>3.2.1. Search</h3></div></div></div><p>Searching a software package</p><pre class="screen"> |
| 15 | + </pre><span class="command"><strong>apt-setup </strong></span><p>安装是首先会下载包到/var/cache/apt/archives/目录</p><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm45655967417776"></a>3.2.1. Search</h3></div></div></div><p>Searching a software package</p><pre class="screen"> |
15 | 16 | $ apt-cache search package |
16 | 17 | </pre><p>列出软件包的详细信息:</p><pre class="screen"> |
17 | 18 | $ apt-cache show package |
18 | 19 | </pre><p>列出软件包的依赖关系:</p><pre class="screen"> |
19 | 20 | $ apt-cache depends package |
20 | 21 | </pre><p>列出软件包, 以及逆向依赖的软件包的详细版本信息:</p><pre class="screen"> |
21 | 22 | $ apt-cache showpkg package |
22 | | - </pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm46094766665696"></a>3.2.2. Installation</h3></div></div></div><pre class="screen"> |
| 23 | + </pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm45655967414864"></a>3.2.2. Installation</h3></div></div></div><pre class="screen"> |
23 | 24 | $ sudo apt-get install package |
24 | 25 | </pre><p>*.deb</p><pre class="screen"> |
25 | 26 | sudo dpkg -i *.deb |
26 | | - </pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm46094766584784"></a>3.2.3. Update</h3></div></div></div><pre class="screen"> |
| 27 | + </pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm45655967413568"></a>3.2.3. Update</h3></div></div></div><pre class="screen"> |
27 | 28 | $ apt-get update |
28 | 29 | $ apt-get upgrade |
29 | 30 | </pre><p>Smart software update</p><pre class="screen"> |
30 | 31 | $ apt-get dist-upgrade |
31 | | - </pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm46094766690736"></a>3.2.4. Remove</h3></div></div></div><p> 删除系统中的foo软件包</p><pre class="screen"> |
| 32 | + </pre></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm45655967412256"></a>3.2.4. Remove</h3></div></div></div><p> 删除系统中的foo软件包</p><pre class="screen"> |
32 | 33 | apt-get remove foo |
33 | 34 | </pre><p>删除系统中的package软件包及其配置文件</p><pre class="screen"> |
34 | 35 | $ sudo apt-get remove --purge package |
35 | 36 | </pre></div></div><div xmlns="" id="disqus_thread"></div><script xmlns="" type="text/javascript"> |
36 | 37 | /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ |
37 | 38 |
|
38 | | - //if(document.domain == 'netkiller.github.com'){ |
| 39 | + //if(document.domain == 'netkiller.github.io'){ |
39 | 40 | var disqus_shortname = 'netkiller'; // required: replace example with your forum shortname |
40 | 41 | //}else{ |
41 | 42 | //var disqus_shortname = 'neochan'; |
|
0 commit comments