使用源码包安装,我们该怎么寻找源码包?

因为yum安装太固定,太死板而且有时候下载的包版本很低,在生产环境我们都是用源码包安装。然后找源码包都是上百度搜,但是有时候可能会遇到一些问题,就是有些包搜不出来,而且有时候也怕搜到的网站可能不安全。

我们需要一种安全下载并能找到想找到的的方式

虽然我们不用yum安装,但是可以使用yum找到指定包的下载网站,想不到吧!?

 yum info sysstat
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.tuna.tsinghua.edu.cn
 * updates: mirrors.tuna.tsinghua.edu.cn
可安装的软件包
名称    :sysstat
架构    :x86_64
版本    :10.1.5
发布    :17.el7
大小    :315 k
源    :base/7/x86_64
简介    : Collection of performance monitoring tools for Linux
网址    :http://sebastien.godard.pagesperso-orange.fr/
协议    : GPLv2+
描述    : The sysstat package contains sar, sadf, mpstat, iostat, pidstat,
         : nfsiostat-sysstat, tapestat, cifsiostat and sa tools for Linux.
         : The sar command collects and reports system activity information.
         : This information can be saved in a file in a binary format for future
         : inspection. The statistics reported by sar concern I/O transfer
         : rates, paging activity, process-related activities, interrupts,
         : network activity, memory and swap space utilization, CPU utilization,
         : kernel activities and TTY statistics, among others. Both UP and SMP
         : machines are fully supported. The sadf command may be used to display
         : data collected by sar in various formats (CSV, XML, etc.).
         : The iostat command reports CPU utilization and I/O statistics for
         : disks. The tapestat command reports statistics for tapes connected to
         : the system. The mpstat command reports global and per-processor
         : statistics. The pidstat command reports statistics for Linux tasks
         : (processes). The nfsiostat-sysstat command reports I/O statistics for
         : network file systems. The cifsiostat command reports I/O statistics
         : for CIFS file systems.

看到没有,上图的网址一栏,我们就可以进入网站找到想要的最新包,进行下载。

这个时候可能还会有另一个问题,就是有些包,yum仓库没有,yum info的时候就没有对应的信息,这时我们先配置epel仓库

yum -y install epel-release

然后在yum info搜索网址

如果这都不行,那就直接网上搜到你想要下载的包的yum仓库,配置yum仓库后,yum info搜索能安全下载源码包的网址,然后进入网址下载

总结:

  yum可以做安全的下载地方的导引,当然源码包安装才是王道

猜你喜欢

转载自www.cnblogs.com/luoposhanchenpingan/p/11137528.html