常用安装源(repo)集合-centos
linux软件安装源(网易镜像)
cd /etc/yum.repos.d cat > vim easynet.repo << EOF [easy] name=easynet baseurl=http://mirrors.163.com/centos/7/os/x86_64/ enabled=1 gpgcheck=0 EOF
安装docker-ce源
wget http://mirrors.ustc.edu.cn/docker-ce/linux/centos/gpg rpm --import gpg cd /etc/yum.repo.d/ wget http://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo sed -i s:download.docker.com:mirrors.ustc.edu.cn\/docker-ce:g docker-ce.repo
安装kubernetes源
cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Kubernetes baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=0 repo_gpgcheck=0 gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg EOF
安装helm源
helm repo add stable https://burdenbear.github.io/kube-charts-mirror/
安装ceph源
sudo yum install -y yum-utils && sudo yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/7/x86_64/ && sudo yum install --nogpgcheck -y epel-release && sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 && sudo rm /etc/yum.repos.d/dl.fedoraproject.org*
yum相关命令
#yum 更新 yum update #yum 更新仓库信息,不更新软件包 yum makeche #yum 清楚repo信息 yum clean all #yum 搜索特定版本软件 yum search xx --showdeplicates #yum 安装软件yum install -y xx #yum 卸载软件 yum autoremove -y xx
仅做记录使用,方便以后查看安装,持续更新!