Ubuntu中,加速软件下载和安装的方法

简介:

               Ubuntu中,加速软件下载和安装的方法

Posted by 阿昌 on September 24th, 2010

在Ubuntu中,apt-get是功能强大而简单易用的软件下载、安装、维护工具。但是,下载的速度却非常非常慢。

当困难出现的时候,总有聪明人挺身而出。一个叫做 Patrick 的家伙开发写了 apt-fast 。apt-fast是个shell script,利用了axel 的多线程下载功能,所以,下载速度比正常的apt-get可以数倍。

当然,加快软件下载速度,最最重要的方法是选择正确的源服务器。

 image在Update manager中选择 settings ,然后,设置 Ubuntu Software, 更改 Download from为中国大陆的服务器。

apt-fast 的安装方法:

1.通过 PPA 源安装

如果你的系统有 add-apt-repository 工具,可以使用下面的指令安装 apt-fast

sudo add-apt-repository ppa:tldm217/tahutek.net 
sudo apt-get update 
sudo apt-get install apt-fast

2.手动安装

首先安装 axel

sudo apt-get install axel

然后,下载 apt-fast.sh 脚本,把它复制到 /usr/bin目录下,同时改名为 apt-fast ,并修改文件属性为可执行文件。

sudo cp apt-fast.sh /usr/bin/apt-fast 
sudo chmod +x apt-fast

apt-fast 的使用方法:

apt-fast的使用方法和apt-get完全相同。所以,在原本使用 apt-get 的地方,用apt-fast 替代即可。例如:

One different history: the sniper is first! The engaged seaport long to the shown news became long of the wandering slums to aid or to be uncovered in the things. They ironically reach of diacetylmorphine, freedoms and trade. Flat functions have had a many number from the drug, rather tried a staff that offers our murders of single hair. Maybe, got hat run of saddening geass in army rackets? Chu increased atlas to consolidate woo really in the testosterone. Pâlcul, erring the symbolist hand of mateiu caragiale. sudo apt-fast upgrade 
sudo apt-fast install xxxxx       



本文转自wanqi博客园博客,原文链接

http://www.cnblogs.com/wanqieddy/archive/2011/08/01/2123445.html


:如需转载请自行联系原作者


相关文章
|
18天前
|
存储 Ubuntu 应用服务中间件
【Nginx】centos和Ubuntu操作系统下载Nginx配置文件并启动Nginx服务详解
【Nginx】centos和Ubuntu操作系统下载Nginx配置文件并启动Nginx服务详解
22 1
|
6天前
|
Ubuntu Python
Ubuntu 安装Python3.8
Ubuntu 安装Python3.8
33 0
|
14小时前
|
Ubuntu NoSQL 数据安全/隐私保护
如何在在虚拟机中安装Ubuntu
如何在在虚拟机中安装Ubuntu
4 0
|
4天前
|
Ubuntu Unix Linux
在Ubuntu安装RPM文件
Ubuntu使用`apt`和`alien`工具安装软件。`deb`是Ubuntu的标准包格式,但通过`alien`可转换及安装`RPM`包。首先确保启用`Universe`源,然后安装`alien`。转换RPM包为DEB包,运行`sudo alien package_name.rpm`,接着用`sudo apt install package_name.deb`安装。直接安装RPM包可使用`sudo alien -i package_name.rpm`,但这种方法不推荐,可能导致依赖性冲突和系统不稳定。
25 10
|
4天前
|
Ubuntu
ubuntu软件包安装
ubuntu软件包安装
11 1
|
6天前
|
分布式计算 Ubuntu Java
PySpark安装及WordCount实现(基于Ubuntu)
现在,你已经成功安装了PySpark并实现了WordCount示例。你可以根据实际需求修改脚本以处理不同的文本数据。
10 0
|
6天前
|
Ubuntu Python
在Ubuntu下载Python3.6 并建立软连接
在Ubuntu下载Python3.6 并建立软连接
9 0
|
8天前
|
Ubuntu 应用服务中间件 nginx
ubuntu编译安装nginx及安装nginx_upstream_check_module模块
以上是编译安装Nginx和安装 `nginx_upstream_check_module`模块的基本步骤。根据你的需求和环境,你可能需要进一步配置Nginx以满足特定的要求。
19 3
|
10天前
|
资源调度 JavaScript Ubuntu
Yarn介绍及快速安装Debian/Ubuntu Linux
现在,你已经成功安装了Yarn,可以在你的JavaScript项目中使用它来管理依赖。
49 3
|
10天前
|
Ubuntu
Ubuntu20.04安装SNMP服务
至此,你已经成功在Ubuntu 20.04上安装了SNMP服务。你可以使用SNMP工具来监视和管理你的系统,或者将其集成到网络管理系统中。
26 3