导出依赖与使用

导出(yum源可用)

yum install yum-plugin-downloadonly -y
yum install --downloadonly --downloaddir=./gcc gcc

生成repo依赖关系

yum install -y createrepo
createrepo ./gcc

压缩

tar zcvf gcc.tar.gz gcc

使用(yum源不可用)

tar zxvf gcc.tar.gz -C /
cat > /etc/yum.repos.d/gcc.repo <<EOF
[gcc]
name=python-repo
baseurl=file:///gpc
gpgcheck=0
enabled=1
EOF
yum install -y gcc
Copyright © weiliang 2021 all right reserved,powered by Gitbook本书发布时间: 2024-04-22 16:03:41

results matching ""

    No results matching ""