kylin v10配置配置本地yum
Posted chefei0824
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
3、配置Kylin.repo
执行完成后,在/var/repo目录下会生成repodata文件夹。
切换到/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
4、测试yum
执行yum makecache
[root@Kylin-V10 yum.repos.d]# yum makecache
[root@Kylin-V10 ~]# yum list
5、安装包关键字查找
[root@Kylin-V10 ~]# yum list | grep java
java-1.8.0-openjdk.x86_64 1:1.8.0.272.b10-7.ky10 @anaconda
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.272.b10-7.ky10 @anaconda
java-11-openjdk.x86_64 1:11.0.9.11-4.ky10 @anaconda
java-11-openjdk-headless.x86_64 1:11.0.9.11-4.ky10 @anaconda
javapackages-filesystem.noarch 5.3.0-2.ky10 @anaconda
javapackages-tools.noarch 5.3.0-2.ky10 @anaconda
tzdata-java.noarch 2020a-8.p01.ky10 @anaconda
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.272.b10-7.ky10 kylin
java-11-openjdk-devel.x86_64 1:11.0.9.11-4.ky10 kylin
文本图形模式
[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
以上是关于kylin v10配置配置本地yum的主要内容,如果未能解决你的问题,请参考以下文章
安装nginx--银河麒麟V10(Kylin Linux Advanced Server release V10 (Tercel))操作系统