|
|
楼主 |
发表于 2025-12-28 10:44:29
|
显示全部楼层
[root@rehlyum mnt]# vim /etc/yum.repos.d/redhat.repo % ]- k4 m& ?9 h0 i# v$ [. p
2 [) U) z2 I, J- g. ~9 Y
[BaseOS]3 f; g8 m. o. c8 A* x
name = redhat8.6-OS
! ^& Q" t0 K5 B2 d0 R( Ibaseurl = file:///mnt/BaseOS/ G3 G, Z% P F5 z5 \) Y
gpgcheck = 0" s. V" V8 X/ m# A7 ~
8 \ W7 U! F" o5 G6 ]
[AppStream]
1 I% ^5 v9 y6 [) W& a6 Lname = redhat8.6-AppStream
3 b* f% q$ s! k2 E, N7 |! A! Tbaseurl = file:///mnt/AppStream
. y! w( Q( y6 E$ }! a2 r, e7 l# Ngpgcheck = 0
- b* C# J% @8 I4 R" [3 G3 \% ?4 ~1 b, c6 M. {8 z+ k* b I/ k
6 Q+ l: o0 h7 R# ^+ ^2 F# w* n6 M+ I" s( W: }3 F3 J
[root@rehlyum mnt]# dnf clean all
% O4 ?! Q% W% D4 L1 _! M( }3 hUpdating Subscription Management repositories.
0 g0 N. j% l9 mUnable to read consumer identity
, Q& }1 i; r6 \" Q% W5 N6 R1 i3 X2 [: f0 F/ o( f5 ~
This system is not registered with an entitlement server. You can use subscription-manager to register./ g$ Q$ ]* W( N8 R- ]* J/ k
! M2 m+ C+ C: C$ {+ v0 files removed
; }' l j6 c# s9 Z: n[root@rehlyum mnt]# dnf install httpd6 i F% P, n# O o7 K
Updating Subscription Management repositories.# D' ]4 p. P" R" k4 Q8 e8 U1 L" c
Unable to read consumer identity
: ~3 ~5 g; E! i* G; z7 E" w! \: K# G# t! T8 X; g$ M
This system is not registered with an entitlement server. You can use subscription-manager to register.
0 l" ?$ c; J+ S) j. o c
: ?4 ?* h' h- A5 i( [redhat8.6-OS 79 MB/s | 2.4 MB 00:00
/ D" k @1 R- P2 R5 L5 ?6 J, d; P8 dredhat8.6-AppStream 80 MB/s | 7.5 MB 00:00
) d7 P) |7 D9 E* p4 I& i; f1 F# q! pLast metadata expiration check: 0:00:01 ago on Sun 28 Dec 2025 10:42:32 AM CST.
; q; ]8 N: i8 s3 }. {* \* i pPackage httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.( P4 c2 F, k7 z) q3 {
Dependencies resolved.
3 J U! |" j: E" h, oNothing to do., i* U& |9 |: w" [: t
Complete!
, \5 I r8 a1 j; n[root@rehlyum mnt]# dnf install httpd -y
5 A' _" V* D* o, x+ {Updating Subscription Management repositories.
% R! F3 x4 }/ P" M1 |, Q3 ZUnable to read consumer identity0 j0 k* x; {; r( T# T8 E
: D T2 r4 m; n; ] |; h
This system is not registered with an entitlement server. You can use subscription-manager to register.
6 O# Y) V2 {( ~, h
$ G/ }. S$ [6 fLast metadata expiration check: 0:00:07 ago on Sun 28 Dec 2025 10:42:32 AM CST.1 e" |3 J% S3 l: C1 G/ n( C P
Package httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.3 o1 |2 Q4 y9 m; H& o
Dependencies resolved.
# p1 K" |. x2 g9 N7 r. J2 SNothing to do.
. J4 y' k: m, z2 ?7 I& SComplete!# E8 v) ?) y5 D; G
[root@rehlyum mnt]# dnf install -y createrepo_c-2 I5 V7 Z8 M& u4 @. r+ p7 |/ \: a- H, W
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_645 Z7 Z5 ]: y3 g
[root@rehlyum mnt]# dnf install -y createrepo_c-# v/ e% L9 |0 }; t, N. D
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% l+ Z/ P8 {% m( \
[root@rehlyum mnt]# dnf install -y createrepo_c, L' w4 ~# {. a: v& I3 \
Updating Subscription Management repositories." c2 [* R( f( q$ n
Unable to read consumer identity- V! a) F( T r
, \" V0 r; S1 a8 D" a; u
This system is not registered with an entitlement server. You can use subscription-manager to register., A) Y- \( M1 M1 S- i
. ~; H1 \! u) p9 m [7 U8 ]+ e: {
Last metadata expiration check: 0:00:27 ago on Sun 28 Dec 2025 10:42:32 AM CST.
9 t/ `" Y8 w: w' rDependencies resolved.& T4 f, M2 s# ]* x2 T2 _. O( I. t+ ]
=================================================================================================================================================================
* T8 Z& O, a' |+ U3 W* Z, S Package Architecture Version Repository Size
+ A8 K% J `3 b8 t# g! Y/ L# K=================================================================================================================================================================
7 P5 i! p, N* OInstalling:
& }2 z5 V' C$ T% S% q2 H; \ createrepo_c x86_64 0.17.7-5.el8 AppStream 89 k
& O {, e* P A) ~. f. m4 X1 ]Installing dependencies:
5 T% ?! }% k3 _( X1 r createrepo_c-libs x86_64 0.17.7-5.el8 AppStream 116 k
5 l5 v2 d* @1 X% \" |/ N) K drpm x86_64 0.4.1-3.el8 AppStream 68 k( Z6 d% d& Y8 h2 @1 C
2 Y# Y; i, D7 R% m4 T, JTransaction Summary
2 _2 E$ P# j2 r2 N=================================================================================================================================================================
7 k+ ^8 j/ X9 d8 o2 w! \; eInstall 3 Packages4 r$ B3 a6 M0 E3 f" p/ u
8 K& q' t+ Q* @: g4 b
Total size: 274 k
% R+ Q8 L1 L3 U: N2 M1 R @Installed size: 580 k4 D! R( _$ ]( f3 ?6 X6 L* ?
Downloading Packages:. ?$ O3 A$ ]9 n- k* u
Running transaction check. Z' q) U& n6 [9 @8 F/ p3 h
Transaction check succeeded.
/ h. u7 D1 x9 G+ bRunning transaction test
2 a- {5 s" d! v/ o8 e+ Y& ~; YTransaction test succeeded.) x5 @& u1 z, ^8 Z p% E& L U% j
Running transaction
* w( e5 @! m8 s& y Preparing : 1/1 $ ]! n7 S' @+ @9 Y
Installing : drpm-0.4.1-3.el8.x86_64 1/3 ) `( `% I- N/ A- b) K P1 D
Installing : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3 5 j/ {3 I k Q2 C% F
Installing : createrepo_c-0.17.7-5.el8.x86_64 3/3 # L, V+ ]2 F. V* f
Running scriptlet: createrepo_c-0.17.7-5.el8.x86_64 3/3 " A) f3 x3 R+ p2 s
Verifying : createrepo_c-0.17.7-5.el8.x86_64 1/3
, Z0 G9 G- J3 J9 h/ V Verifying : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3
+ |' f2 h; G+ ?( {% Z# j: x Verifying : drpm-0.4.1-3.el8.x86_64 3/3 1 ], w( I. F/ C; b& c P5 `
Installed products updated.
9 _8 L+ x' G; L, s& k
, V* d, o( Y( t( e$ dInstalled:7 S# @$ x& ~4 d
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 3 h- i* u# C' n) b& I E- o+ ~+ ?/ T
; x, z' Q3 O. D. U5 u/ @
Complete!
$ E/ Y' B; [* d8 ?; ^ |
|