- 积分
- 1191
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2025-12-28 10:44:29
|
显示全部楼层
[root@rehlyum mnt]# vim /etc/yum.repos.d/redhat.repo ; b; G3 m$ c9 R% z2 K& r# d5 t
5 k6 }) S1 a3 ?. L1 \) N/ k
[BaseOS]# q: ?4 F$ M v! z1 P1 n' k) W
name = redhat8.6-OS
6 E0 D) F* ]* Z3 b, K- Y; W1 I7 Fbaseurl = file:///mnt/BaseOS6 C/ M0 @$ b, R& p
gpgcheck = 0
* i: d: v* j' g6 b% b: D' x+ t' a0 ^# w q6 e
[AppStream]; Z0 ]$ _$ b# C1 e) O$ g8 G! O+ K
name = redhat8.6-AppStream
' @$ R2 ?/ G8 y0 a2 dbaseurl = file:///mnt/AppStream3 ~$ p( ?3 s/ O4 J; K& Z4 P
gpgcheck = 0
! k8 c1 @0 @3 p& H7 y1 N6 z I1 C9 w. U! x& |8 s4 G
, d8 S& m, v8 y& ]* A' [" X; e
0 s( g+ V5 Q3 m! i7 @# u[root@rehlyum mnt]# dnf clean all + k) G7 u; U3 \" B5 R3 W; U% _* U
Updating Subscription Management repositories.
4 X) B- g' _8 F5 z& h: O% l' ?Unable to read consumer identity
" V( @# v7 P- |
# X4 E5 {( W% h& p1 F+ TThis system is not registered with an entitlement server. You can use subscription-manager to register.
9 Y* ?; C% | v3 S2 _- _3 x0 {' }" H1 o. M( D) G
0 files removed
% ]1 l9 ^6 d2 X5 P% Q) y, G& R1 J[root@rehlyum mnt]# dnf install httpd& }* b4 R: \* v
Updating Subscription Management repositories.
& O$ _! n' }/ z/ K% B9 G8 w" D, Y( I, qUnable to read consumer identity% m+ b7 ~4 _7 `
& E, L ~# H7 IThis system is not registered with an entitlement server. You can use subscription-manager to register.# A N$ `+ ~# i4 L9 h$ Z/ @) M3 Z
) H3 c4 N4 c# J ^
redhat8.6-OS 79 MB/s | 2.4 MB 00:00
% e3 A; }! ?/ _4 H7 @- Z+ Bredhat8.6-AppStream 80 MB/s | 7.5 MB 00:00
1 A; J7 I6 T7 g" p4 x- xLast metadata expiration check: 0:00:01 ago on Sun 28 Dec 2025 10:42:32 AM CST.
, v. D9 ^/ f% a) |5 Z) ZPackage httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.
; f1 N2 a3 O7 E# p) Z0 q: EDependencies resolved.
, O5 ]4 y; \% D4 U/ w. O: {: }Nothing to do.2 q8 N8 y. L# I0 L
Complete!
; e' T$ O; z I[root@rehlyum mnt]# dnf install httpd -y
5 [' }" o( }8 \6 sUpdating Subscription Management repositories.5 V' ]7 E# S5 V7 w1 [8 N" g) _% q
Unable to read consumer identity$ e! V9 _- n" H3 u, }% g( r
3 \7 _/ @" ]8 s8 I, ~9 O E
This system is not registered with an entitlement server. You can use subscription-manager to register.2 } \5 P4 R0 @& g$ w8 R. A
+ `3 v. p% B+ B, o3 d, BLast metadata expiration check: 0:00:07 ago on Sun 28 Dec 2025 10:42:32 AM CST.
m; X" q! _9 {1 W0 ~Package httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.. z4 T* Q# N- R7 S) D5 T6 o- ^
Dependencies resolved.
8 j5 x* ]& X1 m; a0 I- I. S( E7 pNothing to do.
9 M- Y, d- q$ i J( o3 a, ^Complete!" [# v7 Z6 a5 v7 j+ G. L |
[root@rehlyum mnt]# dnf install -y createrepo_c-7 H) ^- X% k' V: U) H. m
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_648 K( ~. `$ ~+ Q
[root@rehlyum mnt]# dnf install -y createrepo_c-
6 [1 l5 O$ r/ Y" kcreaterepo_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_644 O$ H7 X. n3 ~ l
[root@rehlyum mnt]# dnf install -y createrepo_c
( T) C( o7 C9 R: n3 ?# i' w- MUpdating Subscription Management repositories.
: @% k# I) Q+ I3 z; ^Unable to read consumer identity
# c( v D4 j: q5 G* G8 o$ h$ S& M, M4 w/ P$ U" S
This system is not registered with an entitlement server. You can use subscription-manager to register.) N" T% ~7 M9 K- a; _
8 X# Z' E5 a" t) i$ M( ]! d# hLast metadata expiration check: 0:00:27 ago on Sun 28 Dec 2025 10:42:32 AM CST.
0 Y4 i: R5 w8 I) z! U6 d/ N$ w4 IDependencies resolved.
, ]3 I$ P. g& J9 q$ b8 d" B3 r=================================================================================================================================================================% U) i9 Y2 r* T8 @7 o9 a6 q" Z
Package Architecture Version Repository Size: i/ C; p! S1 y5 h2 n V
=================================================================================================================================================================
3 l) Z' e, Q1 m) m, H) ]5 [2 ~Installing:. N: v% D) g5 Z# @9 c
createrepo_c x86_64 0.17.7-5.el8 AppStream 89 k
D5 d: v( _( H4 NInstalling dependencies:
' A6 F( i) n, l3 [. a* ?' N( w createrepo_c-libs x86_64 0.17.7-5.el8 AppStream 116 k
" _# @. V: J% T& Z2 q drpm x86_64 0.4.1-3.el8 AppStream 68 k+ p/ c$ H5 _" d, q. C8 o' O
, x' p) s* U" g: P- z8 C1 f; w+ S, ~4 ?; OTransaction Summary
2 r) t# N- [. x3 Y( }! [; X& S# h=================================================================================================================================================================$ Q' E% p+ H0 }8 H# J
Install 3 Packages
7 `. t2 T3 L9 L
, ^/ E# d# g0 E: mTotal size: 274 k! Q- p/ ^, i# X& ^
Installed size: 580 k2 o# ?9 ~1 F# d3 |( e; U: y. K* U8 i
Downloading Packages:
5 i1 _, \& w0 a% Q. ARunning transaction check' e+ {, _4 U0 |% w; i+ |
Transaction check succeeded.
" _3 V( Q: a# R: ]Running transaction test
, K1 u9 E( H, c2 L! \Transaction test succeeded.
' M" Z; P# R) O2 }Running transaction
3 S" t2 l e1 l/ x0 e Preparing : 1/1 " O4 P, Y6 a6 b! e
Installing : drpm-0.4.1-3.el8.x86_64 1/3
8 L2 x% h: [7 @' |" O Installing : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3 4 N( l' G- ^; b
Installing : createrepo_c-0.17.7-5.el8.x86_64 3/3
& i: w9 z7 r( G: N- @+ M- ~" K Running scriptlet: createrepo_c-0.17.7-5.el8.x86_64 3/3 + q1 r( T3 ~, r4 m
Verifying : createrepo_c-0.17.7-5.el8.x86_64 1/3 ( j# {* g, F5 s3 r2 W L( `- ^
Verifying : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3 4 d( r: l+ _% |9 n- n
Verifying : drpm-0.4.1-3.el8.x86_64 3/3
8 D. c. k" b* G s* I: x& EInstalled products updated.1 ^( x( ?0 i7 {2 g1 h* @
& E( P: r1 l# X+ {Installed:
& q8 J6 ~4 @( F* b3 g" l0 P 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 ) ~+ b3 i( P* M! E/ [& e+ z+ t/ _% c
5 a" m9 s0 \) x0 CComplete!5 m, h+ ~5 _9 Y7 J! c* ?
|
|