|
|
楼主 |
发表于 2025-12-28 10:44:29
|
显示全部楼层
[root@rehlyum mnt]# vim /etc/yum.repos.d/redhat.repo : ~/ Q6 H! T0 q! D+ I- Q) Q
* t5 M7 v- l1 e' _9 @
[BaseOS]
9 [' ], ]2 v7 X/ m7 jname = redhat8.6-OS
! ]0 U$ w* {4 S9 h0 Ubaseurl = file:///mnt/BaseOS) G" ^5 \% I; g2 D7 ]1 q2 a4 k5 W: M6 r
gpgcheck = 0
7 s9 N# I0 Y- w# w+ B5 K9 Y( k
" H8 v: K1 Y. Q4 z[AppStream]
; G# K2 m( Q4 Pname = redhat8.6-AppStream1 \& ?% p9 L9 ^' x
baseurl = file:///mnt/AppStream
" R' d u/ L; y; ?# Tgpgcheck = 0
0 P [6 e6 O, T* X3 B+ l- W
- m- |! U6 `& |6 R% N) u3 x9 I7 ~8 H/ k& M' }
. y7 V' c9 P' }( Z1 p
[root@rehlyum mnt]# dnf clean all
& C3 g, g1 _3 C6 L0 `Updating Subscription Management repositories.
2 o, y7 o8 }/ t+ U, m: gUnable to read consumer identity
- w W5 x( q6 y5 c! R/ ~
& r7 X4 n+ I4 x8 P7 D3 zThis system is not registered with an entitlement server. You can use subscription-manager to register.
. _: s5 R) q/ r, s( D! e: m! L+ r0 Y* \
0 files removed
( x; R) b: R. @9 p) B3 X[root@rehlyum mnt]# dnf install httpd% F: s2 R6 O% l9 B" i- F9 t E! `
Updating Subscription Management repositories.' V8 n. f# ~' y/ B* C# q9 c
Unable to read consumer identity
5 M0 P+ K2 S! G- n1 ^ a0 K
( C5 m7 ]) r0 i* P- a) hThis system is not registered with an entitlement server. You can use subscription-manager to register.: M+ ^1 K, ^/ K9 J( |8 g6 Y
. H; l% I& ~! E, Yredhat8.6-OS 79 MB/s | 2.4 MB 00:00 9 G- q/ l$ i$ [ i- E# f& ^
redhat8.6-AppStream 80 MB/s | 7.5 MB 00:00 & l8 i1 D" Q0 m7 `' g% g! X
Last metadata expiration check: 0:00:01 ago on Sun 28 Dec 2025 10:42:32 AM CST.
. Y+ o* I& Y) U- J: p" T2 R o, zPackage httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.
- x [ t3 h2 ]- n9 {6 GDependencies resolved.
* f- @& k, g& n( R; q! BNothing to do.
+ _( c: J6 E* z! HComplete!5 T0 P5 O8 D q
[root@rehlyum mnt]# dnf install httpd -y , Y- n# Q2 h9 U, }0 b
Updating Subscription Management repositories.- V% l4 v2 X0 z
Unable to read consumer identity v/ [% K7 F9 j% j& r C6 Z9 P
& z7 f) q' B% B1 a4 n, k B& qThis system is not registered with an entitlement server. You can use subscription-manager to register.6 R+ y; ]0 _' L& Z5 g) c
: V( i) O. q2 l5 Q- B" gLast metadata expiration check: 0:00:07 ago on Sun 28 Dec 2025 10:42:32 AM CST.
, G7 a1 R9 z8 ~, d) }8 C& pPackage httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.1 j3 ?! ~/ H- y! n6 t) P
Dependencies resolved./ z3 L+ m& p, h$ f" l3 @' T- ~0 D4 [
Nothing to do.& k7 M7 d* N4 C2 Z& n
Complete!% [) _' [8 s" @: H1 Q
[root@rehlyum mnt]# dnf install -y createrepo_c-* p' I/ |6 q/ G$ `9 v, P
createrepo_c-devel-0.17.7-5.el8.i686 createrepo_c-devel-0.17.7-5.el8.x86_64 createrepo_c-libs-0.17.7-5.el8.i686 createrepo_c-libs-0.17.7-5.el8.x86_64
8 S' }5 ^; s5 Q- ~6 |8 C: l[root@rehlyum mnt]# dnf install -y createrepo_c-
. X8 D" H- R$ I. ?6 [5 Q! [createrepo_c-devel-0.17.7-5.el8.i686 createrepo_c-devel-0.17.7-5.el8.x86_64 createrepo_c-libs-0.17.7-5.el8.i686 createrepo_c-libs-0.17.7-5.el8.x86_64: T8 H0 r* p! K; s" |7 B: I* W N
[root@rehlyum mnt]# dnf install -y createrepo_c7 s( X; ~: M4 k
Updating Subscription Management repositories.( J/ x# D% c/ H$ n+ b
Unable to read consumer identity; o0 W* v1 b! a+ ^
" m# J9 m6 I- h% H* r; Z. DThis system is not registered with an entitlement server. You can use subscription-manager to register.
* Q) \6 p% M3 N8 ~8 L5 I6 C: g% n% B2 `
Last metadata expiration check: 0:00:27 ago on Sun 28 Dec 2025 10:42:32 AM CST.
8 u# w6 H+ }4 [4 A/ {5 |* O' y3 VDependencies resolved.& f. d' v0 M' p* w) }+ }! n. ]8 |, m5 `
=================================================================================================================================================================( \8 m/ ]6 F; O8 i8 u
Package Architecture Version Repository Size
8 u! t$ \; y& M! K0 J=================================================================================================================================================================) p! u, M$ f2 b( k. W+ Y
Installing:& |( g1 E1 Y. \% X2 `3 @: q
createrepo_c x86_64 0.17.7-5.el8 AppStream 89 k* W& h3 R; O0 v( E" J/ J" v' ?
Installing dependencies:
4 T! ]% y/ y/ q. E createrepo_c-libs x86_64 0.17.7-5.el8 AppStream 116 k
5 B9 J1 K; ]! A3 x4 { drpm x86_64 0.4.1-3.el8 AppStream 68 k- ~6 [- k% u3 m2 ?/ Y
8 I6 j& p) R) X( F9 l2 M! dTransaction Summary- ^ {# _6 q8 T
=================================================================================================================================================================
- g3 X+ D$ g6 {0 k, tInstall 3 Packages
: p: R q3 P1 i3 S: u1 X. k2 a5 Z8 e& V0 K
Total size: 274 k
* C4 S/ O9 `- E$ {3 m2 x2 EInstalled size: 580 k9 I/ a" K( C6 g. ]4 S1 F
Downloading Packages:
Y4 |! f; v8 b* Y% }: K4 zRunning transaction check; t$ a3 v( R" s2 k) F: B1 Z) h
Transaction check succeeded., }) g; x- X- i) m: d/ }. j
Running transaction test
! ?! q& b) R, m# BTransaction test succeeded.
2 P' x6 p4 r1 U) gRunning transaction
i& D% |, R+ {* o% ~" ~/ Z Preparing : 1/1
2 u5 {; L! u9 `) E$ @ Installing : drpm-0.4.1-3.el8.x86_64 1/3 , p) ^/ t6 r& Y7 f% X3 |# p9 _
Installing : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3 * N3 c+ [3 {( U. [4 a
Installing : createrepo_c-0.17.7-5.el8.x86_64 3/3 2 H/ M* F' C( U! l* {4 r
Running scriptlet: createrepo_c-0.17.7-5.el8.x86_64 3/3 % C$ S- m E! a5 G+ H
Verifying : createrepo_c-0.17.7-5.el8.x86_64 1/3
2 f B7 d) u! A( }" k Verifying : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3 . ~( u5 x" ^2 f1 c- I d q' a
Verifying : drpm-0.4.1-3.el8.x86_64 3/3
. w. K4 C4 g& LInstalled products updated.9 L( Y7 e" n5 g( }# l
( z& V7 {3 j T9 [: w
Installed:2 J9 J0 c0 R+ a h9 C2 Q, x5 k
createrepo_c-0.17.7-5.el8.x86_64 createrepo_c-libs-0.17.7-5.el8.x86_64 drpm-0.4.1-3.el8.x86_64 1 r3 I3 I5 k% h$ I% d Y1 ~4 d: L2 {
: O2 ?6 ~, g+ M1 ?8 a7 f; [" i
Complete!
/ P) I6 L* ?3 T) o& S9 R0 O) T |
|