[root@localhost setup]# mkdir -p /mnt/cdrom
[root@localhost setup]# ll
总用量 4.0G
-rw-r--r-- 1 root root 4.0G 6月 19 10:35 BCLinux-for-Euler-22.10-dvd-x86_64-230308.iso
[root@localhost setup]# mount -o loop BCLinux-for-Euler-22.10-dvd-x86_64-230308.iso /mnt/cdrom
mount: /mnt/cdrom: WARNING: source write-protected, mounted read-only.
[root@localhost setup]# df -h
文件系统 容量 已用 可用 已用% 挂载点
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 16G 12K 16G 1% /dev/shm
tmpfs 6.2G 25M 6.2G 1% /run
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
/dev/mapper/bigcloud--enterprise--linux--for--euler-root 45G 6.2G 36G 15% /
tmpfs 16G 0 16G 0% /tmp
/dev/vda1 974M 87M 820M 10% /boot
/dev/vdb1 200G 1.6G 199G 1% /home
/dev/loop0 4.0G 4.0G 0 100% /mnt/cdrom
[root@localhost setup]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
BCLinux.repo
[root@localhost yum.repos.d]# mkdir backup_tmp
[root@localhost yum.repos.d]# mv BCLinux.repo backup_tmp/
[root@localhost yum.repos.d]# ls
backup_tmp
[root@localhost yum.repos.d]# vi local.repo
[root@localhost yum.repos.d]# cat local.repo
[base]
name=bclinux
baseurl=file:///mnt/cdrom/
gpgcheck=0
enabled=1
[root@localhost yum.repos.d]# yum clean all
无法连接BC-Linux的YUM源服务器。
0 files removed
[root@localhost yum.repos.d]# yum makecache
无法连接BC-Linux的YUM源服务器。
bclinux 114 MB/s | 4.1 MB 00:00
Last metadata expiration check: 0:00:01 ago on 2023年06月26日 星期一 11时56分43秒.
Metadata cache created.
[root@localhost yum.repos.d]# yum -y install telnet*
无法连接BC-Linux的YUM源服务器。
Last metadata expiration check: 0:00:12 ago on 2023年06月26日 星期一 11时56分43秒.
Dependencies resolved.
===============================================================================================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================================================================================
Installing:
telnet x86_64 1:0.17-78.oe2203 base 66 k
telnet-help x86_64 1:0.17-78.oe2203 base 26 k
Transaction Summary
===============================================================================================================================================================================================================
Install 2 Packages
Total size: 92 k
Installed size: 181 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : telnet-help-1:0.17-78.oe2203.x86_64 1/2
Installing : telnet-1:0.17-78.oe2203.x86_64 2/2
Running scriptlet: telnet-1:0.17-78.oe2203.x86_64 2/2
Verifying : telnet-1:0.17-78.oe2203.x86_64 1/2
Verifying : telnet-help-1:0.17-78.oe2203.x86_64 2/2
Installed:
telnet-1:0.17-78.oe2203.x86_64 telnet-help-1:0.17-78.oe2203.x86_64
Complete!
[root@localhost yum.repos.d]#