华南俳烁实业有限公司

考試首頁 | 考試用書 | 培訓(xùn)課程 | 模擬考場(chǎng) | 考試論壇  
  當(dāng)前位置:Linux認(rèn)證 > 綜合輔導(dǎo) > 文章內(nèi)容
  

對(duì)Linux新手非常有用的20個(gè)命令:apt命令

 [ 2016年6月4日 ] 【

apt命令

Debian系列以“apt”命令為基礎(chǔ),“apt”代表了Advanced Package Tool。APT是一個(gè)為Debian系列系統(tǒng)(Ubuntu,Kubuntu等等)開發(fā)的高級(jí)包管理器,在Gnu/Linux系統(tǒng)上,它會(huì)為包自動(dòng)地,智能地搜索,安裝,升級(jí)以及解決依賴。

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

root@tecmint:~# apt-get install mplayer

 

Reading package lists... Done

Building dependency tree      

Reading state information... Done

The following package was automatically installed and is no longer required:

  java-wrappers

Use 'apt-get autoremove' to remove it.

The following extra packages will be installed:

  esound-common libaudiofile1 libesd0 libopenal-data libopenal1 libsvga1 libvdpau1 libxvidcore4

Suggested packages:

  pulseaudio-esound-compat libroar-compat2 nvidia-vdpau-driver vdpau-driver mplayer-doc netselect fping

The following NEW packages will be installed:

  esound-common libaudiofile1 libesd0 libopenal-data libopenal1 libsvga1 libvdpau1 libxvidcore4 mplayer

0 upgraded, 9 newly installed, 0 to remove and 8 not upgraded.

Need to get 3,567 kB of archives.

After this operation, 7,772 kB of additional disk space will be used.

Do you want to continue [Y/n]? y

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

root@tecmint:~# apt-get update

 

Hit http://ppa.launchpad.net raring Release.gpg                                          

Hit http://ppa.launchpad.net raring Release.gpg                                          

Hit http://ppa.launchpad.net raring Release.gpg                     

Hit http://ppa.launchpad.net raring Release.gpg                     

Get:1 http://security.ubuntu.com raring-security Release.gpg [933 B]

Hit http://in.archive.ubuntu.com raring Release.gpg                                                  

Hit http://ppa.launchpad.net raring Release.gpg                     

Get:2 http://security.ubuntu.com raring-security Release [40.8 kB]  

Ign http://ppa.launchpad.net raring Release.gpg                                                 

Get:3 http://in.archive.ubuntu.com raring-updates Release.gpg [933 B]                           

Hit http://ppa.launchpad.net raring Release.gpg                                                               

Hit http://in.archive.ubuntu.com raring-backports Release.gpg

注意:上面的命令會(huì)導(dǎo)致系統(tǒng)整體的改變,所以需要root密碼(查看提示符為"#",而不是“$”).和yum命令相比,Apt更高級(jí)和智能。

見名知義,apt-cache用來搜索包中是否包含子包mplayer, apt-get用來安裝,升級(jí)所有的已安裝的包到最新版。

本文糾錯(cuò)】【告訴好友】【打印此文】【返回頂部
將考試網(wǎng)添加到收藏夾 | 每次上網(wǎng)自動(dòng)訪問考試網(wǎng) | 復(fù)制本頁地址,傳給QQ/MSN上的好友 | 申請(qǐng)鏈接 | 意見留言 TOP
關(guān)于本站  網(wǎng)站聲明  廣告服務(wù)  聯(lián)系方式  站內(nèi)導(dǎo)航  考試論壇
Copyright © 2007-2013 中華考試網(wǎng)(Examw.com) All Rights Reserved
景谷| 驻马店市| 临西县| 孝昌县| 广丰县| 双辽市| 沙河市| 鄯善县| 禹州市| 分宜县| 红河县| 烟台市| 大丰市| 佛山市| 金昌市| 和林格尔县| 兰州市| 抚州市| 新邵县| 沐川县| 班玛县| 依安县| 英山县| 区。| 宜宾市| 平远县| 吉首市| 柳州市| 定远县| 德兴市| 河东区| 江油市| 济阳县| 盖州市| 清水县| 石阡县| 泸溪县| 哈巴河县| 万全县| 辽宁省| 温州市|