MapR本地仓库 centos7
参考文档:https://mapr.com/docs/archive/mapr50/Installing-MapR-Software_26982447.html#InstallingMapRSoftware-Usingalocalrepository
1.创建目录,如果目录不存在
/var/www/html/yum/base
On a computer that is connected to the internet, download the following files, substituting the appropriate <version> number and <datestamp>:
2.下载tar包
下载地址:http://package.mapr.com/releases/ http://package.mapr.com/releases/v<version>/redhat/mapr-<version>GA.rpm.tgz
http://package.mapr.com/releases/ecosystem-5.x/redhat/mapr-ecosystem-5.x-<datestamp>.rpm.tgz
3.复制tar包到目录 /var/www/html/yum/base 并解压
- tar -xvzf mapr-v<version>GA.rpm.tgz
- tar -xvzf mapr-ecosystem-5.x-<datestamp>.rpm.tgz
Create the base repository headers:
4.生成repo文件
createrepo /var/www/html/yum/base
5.安装httpd
yum install -y httpd
6.配置\启动httpd
- vi /etc/httpd/conf/httpd.conf
可以修改/var/www目录,这是资源目录,可以改成自己的目录
在这就是使用当前目录
<Directory "/var/www">
Options FollowSymLinks
AllowOverride None
Allow from all
</Directory> - 启动服务:systemctl start httpd
- 打开网页:http://localhost/yum/base
可以看到源里的rpm安装包
7.配置yum源指向本地的yum源
-
vi /etc/yum.repo.d/maptech.repo
[maprtech] #源的名称,不要与其他源冲突
name=MapR Technologies, Inc. #名称描述
baseurl=file:///var/www/html/yum/base #源URL
enabled=1 #启动用源
gpgcheck=0 #gpg检查 -
Yum缓存清除、生成缓存
-
yum clean all & yum makecache
-
yum install -y packageName
网友评论