kylin v10配置配置本地yum

【kylin v10配置配置本地yum】不操千曲而后晓声,观千剑而后识器。这篇文章主要讲述kylin v10配置配置本地yum相关的知识,希望能为你提供帮助。
1、安装文件准备:
在var下新建文件夹repo
[root@Kylin-V10 ~]# mkdir /var/repo/
上传Kylin-Server-10-SP2-x86-Release-Build09-20210524镜像包的两个文件夹及目录下的文件Packages、Packages-gcc
2、配置repodata
[root@Kylin-V10 ~]# cd /var/repo
[root@Kylin-V10 repo]# createrepo ./
Directory walk started
Directory walk done - 2833 packages
Temporary output repo path: ./.repodata/
Preparing sqlite DBs
Pool started (with 5 workers)
Pool finished

kylin v10配置配置本地yum

文章图片

3、配置Kylin.repo
执行完成后,在/var/repo目录下会生成repodata文件夹。
kylin v10配置配置本地yum

文章图片

切换到/etc/yum.repos.d/文件夹下
cd /etc/yum.repos.d/
备份原来的repo文件
mv kylin_aarch64.repo kylin_aarch64.repo.bak
创建新的repo
[root@Kylin-V10 yum.repos.d]# vi kylin.repo
[root@Kylin-V10 yum.repos.d]# ls
[root@Kylin-V10 yum.repos.d]# vi kylin.repo
[root@Kylin-V10 yum.repos.d]# ls
kylin.repo
[root@Kylin-V10 yum.repos.d]# cat kylin.repo
[kylin]
name=kylin
baseurl=file:///var/repo/
gpgcheck=0
enabled=1
kylin v10配置配置本地yum

文章图片

4、测试yum
执行yum makecache
[root@Kylin-V10 yum.repos.d]# yum makecache
kylin v10配置配置本地yum

文章图片

[root@Kylin-V10 ~]# yum list
kylin v10配置配置本地yum

文章图片

5、安装包关键字查找
[root@Kylin-V10 ~]# yum list | grep java
java-1.8.0-openjdk.x86_641:1.8.0.272.b10-7.ky10@anaconda
java-1.8.0-openjdk-headless.x86_641:1.8.0.272.b10-7.ky10@anaconda
java-11-openjdk.x86_641:11.0.9.11-4.ky10@anaconda
java-11-openjdk-headless.x86_641:11.0.9.11-4.ky10@anaconda
javapackages-filesystem.noarch5.3.0-2.ky10@anaconda
javapackages-tools.noarch5.3.0-2.ky10@anaconda
tzdata-java.noarch2020a-8.p01.ky10@anaconda
java-1.8.0-openjdk-devel.x86_641:1.8.0.272.b10-7.ky10kylin
java-11-openjdk-devel.x86_641:11.0.9.11-4.ky10kylin
文本图形模式
[root@Kylin-V10 ~]# systemctl isolate graphical.target
[root@Kylin-V10 ~]# systemctl isolate multi-user.target
[root@Kylin-V10 ~]# systemctl set-default graphical.target
[root@Kylin-V10 ~]# systemctl set-default multi-user.target

    推荐阅读