码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 软件包管理

时间:2020-06-20 10:37:46      阅读:74      评论:0      收藏:0      [点我收藏+]

标签:系统   ges   ror   loading   inux   etc   lists   ict   one   

下面简单介绍以喜爱ubuntucentos在软件包管理程序上面的区别。

Ubuntu apt 软件包管理程序,下软件包是通过apt这个程序来下载的。

Centos yum 下载软件是通过这个程序命令进行的。

 

下面我们安装nano 

技术图片

 

 

能够打开文件了,说明下载完成之后,就已经安装好了。

技术图片

 

 

查看系统的版本:lsb_release -a

技术图片

 

 技术图片

 

 

其实装完linux系统的第一件事请就是修改数据源,将软件仓库修改为阿里的,这样我们下载和安装软件的时候会比较快。搜搜的。

技术图片

 

 技术图片

 

 

下载完了之后,更新一下apt程序 更新软件包列表

 

zyq@ubuntu:/etc/apt$ sudo apt-get update

Get:1 http://mirrors.aliyun.com/ubuntu xenial InRelease [247 kB]

Get:2 http://mirrors.aliyun.com/ubuntu xenial-security InRelease [109 kB]

Get:3 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease [109 kB]

Get:4 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease [107 kB]

Get:5 http://mirrors.aliyun.com/ubuntu xenial/main amd64 Packages [1,201 kB]

Get:6 http://mirrors.aliyun.com/ubuntu xenial/main i386 Packages [1,196 kB]                                                                                                                                     

Get:7 http://mirrors.aliyun.com/ubuntu xenial/main Translation-en [568 kB]                                                                                                                                      

Get:8 http://mirrors.aliyun.com/ubuntu xenial/restricted amd64 Packages [8,344 B]                                                                                                                               

Get:9 http://mirrors.aliyun.com/ubuntu xenial/restricted i386 Packages [8,684 B]                                                                                                                                

Get:10 http://mirrors.aliyun.com/ubuntu xenial/restricted Translation-en [2,908 B]                                                                                                                              

Get:11 http://mirrors.aliyun.com/ubuntu xenial/universe amd64 Packages [7,532 kB]                                                                                                                               

Get:12 http://mirrors.aliyun.com/ubuntu xenial/universe i386 Packages [7,512 kB]                                                                                                                                

Get:13 http://mirrors.aliyun.com/ubuntu xenial/universe Translation-en [4,354 kB]                                                                                                                               

Get:14 http://mirrors.aliyun.com/ubuntu xenial/multiverse amd64 Packages [144 kB]                                                                                                                               

Get:15 http://mirrors.aliyun.com/ubuntu xenial/multiverse i386 Packages [140 kB]                                                                                                                                

Get:16 http://mirrors.aliyun.com/ubuntu xenial/multiverse Translation-en [106 kB]                                                                                                                               

Get:17 http://mirrors.aliyun.com/ubuntu xenial-security/main amd64 Packages [841 kB]                                                                                                                            

Get:18 http://mirrors.aliyun.com/ubuntu xenial-security/main i386 Packages [647 kB]                                                                                                                             

Get:19 http://mirrors.aliyun.com/ubuntu xenial-security/main Translation-en [319 kB]                                                                                                                            

Get:20 http://mirrors.aliyun.com/ubuntu xenial-security/restricted amd64 Packages [7,204 B]                                                                                                                     

Get:21 http://mirrors.aliyun.com/ubuntu xenial-security/restricted i386 Packages [7,224 B]                                                                                                                      

Get:22 http://mirrors.aliyun.com/ubuntu xenial-security/restricted Translation-en [2,152 B]                                                                                                                     

Get:23 http://mirrors.aliyun.com/ubuntu xenial-security/universe amd64 Packages [487 kB]                                                                                                                        

Get:24 http://mirrors.aliyun.com/ubuntu xenial-security/universe i386 Packages [420 kB]                                                                                                                         

Get:25 http://mirrors.aliyun.com/ubuntu xenial-security/universe Translation-en [199 kB]                                                                                                                        

Get:26 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse amd64 Packages [5,728 B]                                                                                                                     

Get:27 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse i386 Packages [5,880 B]                                                                                                                      

Get:28 http://mirrors.aliyun.com/ubuntu xenial-security/multiverse Translation-en [2,708 B]                                                                                                                     

Get:29 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 Packages [1,121 kB]                                                                                                                           

Get:30 http://mirrors.aliyun.com/ubuntu xenial-updates/main i386 Packages [908 kB]                                                                                                                              

Get:31 http://mirrors.aliyun.com/ubuntu xenial-updates/main Translation-en [427 kB]                                                                                                                             

Get:32 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted amd64 Packages [7,616 B]                                                                                                                      

Get:33 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted i386 Packages [7,580 B]                                                                                                                       

Get:34 http://mirrors.aliyun.com/ubuntu xenial-updates/restricted Translation-en [2,272 B]                                                                                                                      

Get:35 http://mirrors.aliyun.com/ubuntu xenial-updates/universe amd64 Packages [795 kB]                                                                                                                         

Get:36 http://mirrors.aliyun.com/ubuntu xenial-updates/universe i386 Packages [721 kB]                                                                                                                          

Get:37 http://mirrors.aliyun.com/ubuntu xenial-updates/universe Translation-en [332 kB]                                                                                                                         

Get:38 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse amd64 Packages [16.8 kB]                                                                                                                      

Get:39 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse i386 Packages [15.9 kB]                                                                                                                       

Get:40 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse Translation-en [8,468 B]                                                                                                                      

Get:41 http://mirrors.aliyun.com/ubuntu xenial-backports/main amd64 Packages [7,280 B]                                                                                                                          

Get:42 http://mirrors.aliyun.com/ubuntu xenial-backports/main i386 Packages [7,288 B]                                                                                                                           

Get:43 http://mirrors.aliyun.com/ubuntu xenial-backports/main Translation-en [4,456 B]                                                                                                                          

Get:44 http://mirrors.aliyun.com/ubuntu xenial-backports/universe amd64 Packages [8,064 B]                                                                                                                      

Get:45 http://mirrors.aliyun.com/ubuntu xenial-backports/universe i386 Packages [7,744 B]                                                                                                                       

Get:46 http://mirrors.aliyun.com/ubuntu xenial-backports/universe Translation-en [4,328 B]                                                                                                                      

Fetched 30.7 MB in 54s (563 kB/s)                                                                                                                                                                               

Reading package lists... Done

 

 

纯净卸载安装过的软件,和该软件相关连的所有东西都会卸载,比较好用。

比如说,我卸载nano:  sudo apt-get autoremove nano

 

Linux 软件包管理

标签:系统   ges   ror   loading   inux   etc   lists   ict   one   

原文地址:https://www.cnblogs.com/dongyaotou/p/13167689.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!