New Document Texte
New Document Texte
New Document Texte
This system is not registered with an entitlement server. You can use subscription-
manager to register.
You have enabled checking of packages via GPG keys. This is a good thing.
However, you do not have any GPG public keys installed. You need to download
the keys for packages you wish to install and install them.
You can do that by running the command:
rpm --import public.gpg.key
Alternatively you can specify the url to the key you would like to use
for a repository in the 'gpgkey' option in a repository section and YUM
will install it for you.
This system is not registered with an entitlement server. You can use subscription-
manager to register.
AppStream
22 MB/s | 6.5 MB 00:00
BaseOS
11 MB/s | 2.0 MB 00:00
Dependencies resolved.
===================================================================================
===========================================
Package Architecture Version
Repository Size
===================================================================================
===========================================
Installing:
bash-completion noarch 1:2.11-4.el9
BaseOS 459 k
Installing dependencies:
libpkgconf x86_64 1.7.3-10.el9
BaseOS 37 k
pkgconf x86_64 1.7.3-10.el9
BaseOS 45 k
pkgconf-m4 noarch 1.7.3-10.el9
BaseOS 16 k
pkgconf-pkg-config x86_64 1.7.3-10.el9
BaseOS 12 k
Transaction Summary
===================================================================================
===========================================
Install 5 Packages
Installed:
bash-completion-1:2.11-4.el9.noarch libpkgconf-1.7.3-10.el9.x86_64
pkgconf-1.7.3-10.el9.x86_64
pkgconf-m4-1.7.3-10.el9.noarch pkgconf-pkg-config-1.7.3-10.el9.x86_64
Complete!
[root@localhost yum.repos.d]# reboot
[root@localhost yum.repos.d]#
Remote side unexpectedly closed network connection
───────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────
Session stopped
- Press <Return> to exit tab
- Press R to restart session
- Press S to save terminal output to file
───────────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────────
Session stopped
- Press <Return> to exit tab
- Press R to restart session
- Press S to save terminal output to file
┌──────────────────────────────────────────────────────────────────────┐
│ • MobaXterm Personal Edition v23.6 • │
│ (SSH client, X server and network tools) │
│ │
│ ⮞ SSH session to root@192.168.0.231 │
│ • Direct SSH : ✓ │
│ • SSH compression : ✓ │
│ • SSH-browser : ✓ │
│ • X11-forwarding : ✗ (disabled or not supported by server) │
│ │
│ ⮞ For more info, ctrl+click on help or visit our website. │
└──────────────────────────────────────────────────────────────────────┘
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 1.8G 0 1.8G 0% /dev/shm
tmpfs 729M 8.8M 720M 2% /run
/dev/mapper/rhel-root 5.6G 1.3G 4.3G 23% /
/dev/sda2 960M 216M 745M 23% /boot
/dev/sda1 599M 7.0M 592M 2% /boot/efi
tmpfs 365M 0 365M 0% /run/user/0
[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 8G 0 disk
├─sda1 8:1 0 600M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 6.4G 0 part
├─rhel-root 253:0 0 5.6G 0 lvm /
└─rhel-swap 253:1 0 820M 0 lvm [SWAP]
sdb 8:16 0 8G 0 disk
sr0 11:0 1 9.8G 0 rom
[root@localhost ~]# vi /etc/fstab
[root@localhost ~]# vi /etc/fstab
[root@localhost ~]# mount -a
mount: /iso: wrong fs type, bad option, bad superblock on /dev/sr0, missing
codepage or helper program, or other error.
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
[root@localhost ~]# vi /etc/fstab
[root@localhost ~]# mount -a
mount: /iso: WARNING: source write-protected, mounted read-only.
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.0M 0 4.0M 0% /dev
tmpfs 1.8G 0 1.8G 0% /dev/shm
tmpfs 729M 8.8M 720M 2% /run
/dev/mapper/rhel-root 5.6G 1.3G 4.3G 23% /
/dev/sda2 960M 216M 745M 23% /boot
/dev/sda1 599M 7.0M 592M 2% /boot/efi
tmpfs 365M 0 365M 0% /run/user/0
/dev/sr0 9.9G 9.9G 0 100% /iso
[root@localhost ~]# vim
-bash: vim: command not found
[root@localhost ~]# yum install vim
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Last metadata expiration check: 0:10:21 ago on Sun 25 Feb 2024 02:09:29 PM CET.
Dependencies resolved.
===================================================================================
===========================================
Package Architecture Version
Repository Size
===================================================================================
===========================================
Installing:
vim-enhanced x86_64 2:8.2.2637-20.el9_1
AppStream 1.8 M
Installing dependencies:
gpm-libs x86_64 1.20.7-29.el9
AppStream 22 k
vim-common x86_64 2:8.2.2637-20.el9_1
AppStream 7.0 M
vim-filesystem noarch 2:8.2.2637-20.el9_1
BaseOS 22 k
Transaction Summary
===================================================================================
===========================================
Install 4 Packages
Installed:
gpm-libs-1.20.7-29.el9.x86_64 vim-common-2:8.2.2637-20.el9_1.x86_64
vim-enhanced-2:8.2.2637-20.el9_1.x86_64
vim-filesystem-2:8.2.2637-20.el9_1.noarch
Complete!
[root@localhost ~]# yum search
check-update groupinfo groupupdate list provides search
whatprovides
clean groupinstall help localinstall remove shell
deplist grouplist info localupdate repolist update
erase groupremove install makecache resolvedep upgrade
[root@localhost ~]# yum whatprovides vim
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Last metadata expiration check: 0:10:57 ago on Sun 25 Feb 2024 02:09:29 PM CET.
vim-enhanced-2:8.2.2637-20.el9_1.x86_64 : A version of the VIM editor which
includes recent enhancements
Repo : @System
Matched from:
Provide : vim
This system is not registered with an entitlement server. You can use subscription-
manager to register.
Last metadata expiration check: 0:11:19 ago on Sun 25 Feb 2024 02:09:29 PM CET.
Package vim-enhanced-2:8.2.2637-20.el9_1.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!