考试首页 | 考试用书 | 培训课程 | 模拟考场 | 考试论坛  
  当前位置:操作系统 > Linux > 文章内容
  

linux系统入门学习(82)

 [ 2016年7月10日 ] 【

apt命令

Debian系列以“apt”命令为基础,“apt”代表了Advanced Package Tool。APT是一个为Debian系列系统(Ubuntu,Kubuntu等等)开发的高级包管理器,在Gnu/Linux系统上,它会为包自动地,智能地搜索,安装,升级以及解决依赖。

?

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

注意:上面的命令会导致系统整体的改变,所以需要root密码(查看提示符为"#",而不是“$”).和yum命令相比,Apt更高级和智能。

见名知义,apt-cache用来搜索包中是否包含子包mplayer, apt-get用来安装,升级所有的已安装的包到最新版。

本文纠错】【告诉好友】【打印此文】【返回顶部
将考试网添加到收藏夹 | 每次上网自动访问考试网 | 复制本页地址,传给QQ/MSN上的好友 | 申请链接 | 意见留言 TOP
关于本站  网站声明  广告服务  联系方式  站内导航  考试论坛
Copyright © 2007-2013 中华考试网(Examw.com) All Rights Reserved