|
|
楼主 |
发表于 2025-12-28 10:44:29
|
显示全部楼层
[root@rehlyum mnt]# vim /etc/yum.repos.d/redhat.repo
, |! B8 t# t2 W1 ~# I* B) A9 s7 Y! o2 d4 g) h
[BaseOS]# T1 L3 U( P2 E8 N( h
name = redhat8.6-OS
6 ~1 q5 i# N5 u* I( { `baseurl = file:///mnt/BaseOS5 c6 {% H! H+ c: J' |, V
gpgcheck = 0
# W# H9 n# Y2 C
& J9 W' c& v E3 E2 Z# D/ r[AppStream]5 E" ~% E+ I, F( }2 r
name = redhat8.6-AppStream
8 N0 O' t2 m/ ], {$ Jbaseurl = file:///mnt/AppStream
; p. O- b& u" igpgcheck = 0
! m( D2 l2 T4 l ~+ X1 H e. Z' V1 T* ], a: C s- W5 [
/ L: l. ]; D& p6 d4 {# d X
5 S: o9 z' w" ?
[root@rehlyum mnt]# dnf clean all
* F9 a- U7 E) F% b" L& aUpdating Subscription Management repositories.0 F5 G9 d( W) M& k3 M6 C/ l1 `) p
Unable to read consumer identity& w9 s/ B) K; q! | l) z
) Q# j. [6 _. c& b2 }This system is not registered with an entitlement server. You can use subscription-manager to register.1 g: [% T- h. n
8 m/ U8 |' ^8 {" Q! x. b; t8 W( U0 files removed/ a" z% }/ a1 |" V+ \3 j" T4 X
[root@rehlyum mnt]# dnf install httpd
3 h% e4 Y0 C1 p+ c9 ` w. {Updating Subscription Management repositories.: V" A6 X; a1 ~8 P% [! B
Unable to read consumer identity
/ a& U# q& o# S0 J- m7 D. F9 g( n# o1 b! h1 X
This system is not registered with an entitlement server. You can use subscription-manager to register.- y8 M0 m, B- S. @& S+ T
& a* G9 P5 ^( _5 {' M- B8 g* }, X
redhat8.6-OS 79 MB/s | 2.4 MB 00:00 + Q- Z2 R* g& q3 _
redhat8.6-AppStream 80 MB/s | 7.5 MB 00:00 2 h2 B' U4 O- K% e2 b( n! w
Last metadata expiration check: 0:00:01 ago on Sun 28 Dec 2025 10:42:32 AM CST.
2 _3 m0 q2 a2 I0 q4 t- i) v( u5 B* bPackage httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.
2 g2 P* X, c/ T) ZDependencies resolved.
A* y8 u* _% z8 F( INothing to do.
0 F/ C( }8 `5 `6 U; dComplete!
# L, ^2 x& C4 i. h3 L[root@rehlyum mnt]# dnf install httpd -y a& ~# R! _8 y* ]
Updating Subscription Management repositories.
Q2 A- W* r9 HUnable to read consumer identity% d8 ^( ~9 ~# o4 w1 q" o2 ?! q7 ^& b
3 p5 ^. A& y n" i% G! C) qThis system is not registered with an entitlement server. You can use subscription-manager to register.* A' t; }& H+ p0 K
( Z1 i$ c+ g ]! n2 C. y0 C4 TLast metadata expiration check: 0:00:07 ago on Sun 28 Dec 2025 10:42:32 AM CST.) v! o( u& `) K( n+ a
Package httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.. A" G; A) k v3 S8 \* P+ N% E ?
Dependencies resolved.
; I7 V1 a X4 O7 q2 QNothing to do.
+ x) S8 B; a+ O) _' JComplete!
+ ], t0 t: p( O[root@rehlyum mnt]# dnf install -y createrepo_c-
) v5 Z, j$ D5 y& R1 O" H" u; [% mcreaterepo_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
( Q. Z0 w R- @! w+ B3 V[root@rehlyum mnt]# dnf install -y createrepo_c-
" N# ?% n) A- I) R! {4 I: P6 Qcreaterepo_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
% p! }; b+ u9 [' l[root@rehlyum mnt]# dnf install -y createrepo_c. L9 v9 e, u& C" T3 O& A2 _
Updating Subscription Management repositories.
: B4 e% C" u+ ]8 r6 q1 dUnable to read consumer identity6 ] v9 S- N- F2 O
" n# D, x, W$ _This system is not registered with an entitlement server. You can use subscription-manager to register.
" u8 {$ D2 M0 u) E' s; t" Y( o$ ^
" p$ W7 s7 x1 y' U) S# U9 ELast metadata expiration check: 0:00:27 ago on Sun 28 Dec 2025 10:42:32 AM CST.
! i& K7 n$ i( w9 S/ U W& I( R3 b7 aDependencies resolved.
4 k5 b1 u$ @* J8 r9 V+ t=================================================================================================================================================================
& x. w) o- Q3 h- | Package Architecture Version Repository Size
/ R: p4 u- Y# r: o( I=================================================================================================================================================================
~5 p' ?# I) r7 jInstalling:3 n/ l& j& B* q: D( I
createrepo_c x86_64 0.17.7-5.el8 AppStream 89 k
6 p7 g; n2 Q0 [4 UInstalling dependencies:
6 g6 h) i8 Y: q! {/ t0 a createrepo_c-libs x86_64 0.17.7-5.el8 AppStream 116 k
6 l Z6 ^. |1 C* q1 b drpm x86_64 0.4.1-3.el8 AppStream 68 k
* v( A& n; I1 a; Y( G5 y5 u$ B# I. B4 G9 M# [7 T7 {
Transaction Summary
% ]4 _; v Y$ n/ b=================================================================================================================================================================1 ^2 C. }/ s; j9 T- ]5 `
Install 3 Packages
" `1 g M4 }. s- s7 t4 u4 K# P
9 _! P' P5 N& x c* p, ?Total size: 274 k/ f' ~! W2 m. f7 v2 u; ]0 H g
Installed size: 580 k3 p& t6 {* O- ?8 [
Downloading Packages:/ v6 [8 L5 }; @" F
Running transaction check- @0 R: P/ {: S: L* k, E! v' s
Transaction check succeeded.
" M1 O* o$ \' `9 P, M3 A' ?Running transaction test% e5 x* ~: G4 p2 X; C
Transaction test succeeded.
* P) ~' ?' q1 n: z3 eRunning transaction4 F; t8 C+ T- y3 w7 @
Preparing : 1/1 ; z% V) M4 K* N3 ~7 F9 c
Installing : drpm-0.4.1-3.el8.x86_64 1/3
& s1 _. E# E& _5 p Installing : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3
" t7 T* `7 _- @ Installing : createrepo_c-0.17.7-5.el8.x86_64 3/3
; k( S% C6 ^7 h5 G Running scriptlet: createrepo_c-0.17.7-5.el8.x86_64 3/3
- N- k6 C0 y, r5 j& d9 @# M Verifying : createrepo_c-0.17.7-5.el8.x86_64 1/3
% M% c u U5 m+ X- O Verifying : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3
* q8 k/ ] W3 @/ H8 \" _5 W) @) o Verifying : drpm-0.4.1-3.el8.x86_64 3/3 ; a' a2 J+ c' u$ Q7 x
Installed products updated.2 g2 l( K. `( S2 q; o/ K' c3 x
( n0 W0 p. p- O' _% EInstalled:8 \* j' t4 d1 o C q% y
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
# Q6 D8 A/ [5 `: ]: d; K3 Z9 G7 w( `/ ~
Complete!% n) O* ]5 f7 F
|
|