CentOS 7

CentOS7下的各种应用


配置本地Yum源-centos

<h1>方法一</h1> <h3>1.挂载光驱</h3> <pre><code class="language-bash">mount -t iso9660 /dev/cdrom /mnt</code></pre> <h3>2.删除原yum源配置文件</h3> <pre><code class="language-bash">mv /etc/yum.repo.d/* /tmp</code></pre> <h3>3.创建本地yum配置文件</h3> <p>cat /etc/yum.repo.d/cdrom.repo</p> <pre><code class="language-bash">[cdrom] name=cdrom baseurl=file:///mnt enabled=1 gpgcheck=0</code></pre> <h3>4.清除yum缓存并重建缓存</h3> <pre><code class="language-bash">yum clean all yum makecache yum list</code></pre> <h1>方法二</h1> <p><a href="https://www.cnblogs.com/wangg-mail/p/4418350.html">https://www.cnblogs.com/wangg-mail/p/4418350.html</a></p>

页面列表

ITEM_HTML