yum

centos wget代理设置

帅比萌擦擦* 提交于 2020-11-09 13:28:02
今天安装了一个centos 6.5 由于机器没有直接访问internet的权限,所以在使用YUM之前,我对yum 增加了代理的设置 编辑/etc/yum.conf [root @Personal ~]# vim /etc/yum.conf 在yum.conf最后添加如下文字: proxy=http://172.24.3.212:8080 编辑完成后保存,不需要重启服务器或者服务,直接再次尝试使用yum 来进行安装软件,直接就ok 了 在配置服务器过程中需要用到wget 命令,这个命令在centos 最小化安装的情况下,是不会被安装的。 使用yum 直接安装这个命令: yum -y install wget 安装完成后,我很心急的去使用wget 来下载软件,运行命令后,提示下载失败,随即醒悟到我只对与yum这个软件设置了代理,要使用wget 那就要对wget设置代理,查询相关文档后,得知wget的配置文件为/etc/wgetrc 所以编辑这个文件: [root @Personal ~]# vim /etc/wgetrc 然后找到代理的设置相关参数,默认这些参数都是使用#注释掉的,去掉代理注释,然后修改代理服务器的地址, 去掉use_proxy=on前面的注释 #https_proxy = http://proxy.yoyodyne.com:18023/ http_proxy =

Installing Docker on CentOS 6 after removal of docker-io

为君一笑 提交于 2020-07-04 13:12:28
问题 For some time, the docker-io package has been used to install Docker on CentOS 6. Since early this month, this package no longer appears to be available: [root@e0-01.p:0 yum.repos.d]# yum install docker-io Loaded plugins: fastestmirror, presto Setting up Install Process Determining fastest mirrors * base: mirror.intergrid.com.au * extras: mirror.ventraip.net.au * updates: mirror.ventraip.net.au base | 3.7 kB 00:00 base/primary_db | 4.7 MB 00:00 epel | 4.7 kB 00:00 epel/primary_db | 6.0 MB 00

Linux - Yum Install GCC - Missing Kernel-headers

强颜欢笑 提交于 2020-06-24 02:58:10
问题 When ever i try to install GCC on my linux (centos) It comes back with missing glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5- 58.el5_6.4.x86_64 (updates) glibc-headers-2.5-58.el5_6.4.x86_64 from updates has depsolving problems --> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5- 58.el5_6.4.x86_64 (updates) Error: Missing Dependency: kernel-headers >= 2.2

Install R packages using docker file

六眼飞鱼酱① 提交于 2020-05-14 14:42:50
问题 I have installed R using below line in my docker file. Please suggest how do I specify now packages to be installed in my docker file. RUN yum -y install R-core R-devel I'm doing something like this: RUN R -e "install.packages('methods',dependencies=TRUE, repos='http://cran.rstudio.com/')"\ && R -e "install.packages('jsonlite',dependencies=TRUE, repos='http://cran.rstudio.com/')" \ && R -e "install.packages('tseries',dependencies=TRUE, repos='http://cran.rstudio.com/')" Is this the right way

Install R packages using docker file

女生的网名这么多〃 提交于 2020-05-14 14:42:34
问题 I have installed R using below line in my docker file. Please suggest how do I specify now packages to be installed in my docker file. RUN yum -y install R-core R-devel I'm doing something like this: RUN R -e "install.packages('methods',dependencies=TRUE, repos='http://cran.rstudio.com/')"\ && R -e "install.packages('jsonlite',dependencies=TRUE, repos='http://cran.rstudio.com/')" \ && R -e "install.packages('tseries',dependencies=TRUE, repos='http://cran.rstudio.com/')" Is this the right way