|
|
楼主 |
发表于 2025-12-28 10:44:29
|
显示全部楼层
[root@rehlyum mnt]# vim /etc/yum.repos.d/redhat.repo , L6 c, H3 o. x- y8 [) H
' H* W0 U z9 Z0 T
[BaseOS]( E6 d4 K! P7 G' F. d
name = redhat8.6-OS# d- ^# {& b9 k
baseurl = file:///mnt/BaseOS
2 x8 i1 T2 G/ Sgpgcheck = 0
9 q8 W; ? B: q5 @( ?' \5 F- C A+ N; n& T8 R
[AppStream]
9 C1 h; u7 m( _5 X S3 k8 sname = redhat8.6-AppStream3 b2 e$ m: H2 c6 \7 M( Y
baseurl = file:///mnt/AppStream
4 [6 f( c# Q+ D, }% Z6 Qgpgcheck = 0
/ Z1 J# Q: T& o: H x/ g. Y
: W2 v0 g0 B/ P( L; @
I# ]( M2 W4 q4 E% b5 f
3 A' z$ p( j8 o) \[root@rehlyum mnt]# dnf clean all
- G5 ^8 V8 W$ OUpdating Subscription Management repositories.
$ M3 |' c: j# t$ QUnable to read consumer identity0 ?2 n- l! D8 q9 p# J
6 l6 P5 F' Y8 E& j* [
This system is not registered with an entitlement server. You can use subscription-manager to register.
* b) m. `+ d& u& l! Y1 Z5 K5 O% J
& I( f; Z: ] u ]0 I0 files removed. ^" E3 E# M# D0 I
[root@rehlyum mnt]# dnf install httpd$ z3 n- U! ?- N* k) L5 b
Updating Subscription Management repositories.
: o) O. a3 p* b( t: yUnable to read consumer identity& u$ X5 r9 D8 H6 x" j9 U9 ~6 W8 }
& v! }! e; ~$ s) C2 nThis system is not registered with an entitlement server. You can use subscription-manager to register.
* e- v% u' F) L5 M, L
. ?) S- s# |3 o$ z. aredhat8.6-OS 79 MB/s | 2.4 MB 00:00
1 Z3 b+ v9 Z ]9 y7 r. Dredhat8.6-AppStream 80 MB/s | 7.5 MB 00:00 * o p% V. o/ g) x2 \8 O7 ]
Last metadata expiration check: 0:00:01 ago on Sun 28 Dec 2025 10:42:32 AM CST.
' r K8 n& p' b" ?& DPackage httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.
9 x' @; c& w: J- O5 x4 {5 yDependencies resolved.8 p* a0 B% T$ `. ]; y. k
Nothing to do.
5 Q6 E! k5 Q- j6 g0 bComplete!4 B5 j6 T0 \+ @) c( W
[root@rehlyum mnt]# dnf install httpd -y
' Q0 U. R7 y' [. VUpdating Subscription Management repositories.2 X/ L( ~, e) o5 V' N ]% R2 h3 C
Unable to read consumer identity2 [1 U' f4 U# o: _
1 ^1 W; L5 L( \ k8 kThis system is not registered with an entitlement server. You can use subscription-manager to register.
- S3 n2 v) ^0 ]2 h0 J/ V/ o' ?! R8 O( s, ]/ ]
Last metadata expiration check: 0:00:07 ago on Sun 28 Dec 2025 10:42:32 AM CST.0 `# A0 d/ i: H! G+ @& ~& J
Package httpd-2.4.37-47.module+el8.6.0+14529+083145da.1.x86_64 is already installed.
) T0 e2 y r: ? @3 w. tDependencies resolved.
8 _. M6 H1 }2 U) i! ]. ONothing to do.
3 S7 Z- x+ Q4 n4 pComplete!
4 H2 b3 q# d% z% \) \[root@rehlyum mnt]# dnf install -y createrepo_c-
4 B+ w& ^* E+ u% o& s+ R ^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_642 v% @1 m+ i5 ^& O
[root@rehlyum mnt]# dnf install -y createrepo_c- k2 {5 [6 Z+ 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
+ e. n0 B- D1 Q- ^! k[root@rehlyum mnt]# dnf install -y createrepo_c+ M" s( g# v, x
Updating Subscription Management repositories.! d# g) W1 y+ {; ]; ^4 ^4 p8 e
Unable to read consumer identity
8 Z' S7 C: C" O0 H* `: m
2 b$ @1 j0 m' P( P/ D8 o6 m* SThis system is not registered with an entitlement server. You can use subscription-manager to register.
) J% r3 y: ?) f- v2 G# J7 |0 {
! `( r, K2 P7 LLast metadata expiration check: 0:00:27 ago on Sun 28 Dec 2025 10:42:32 AM CST.
5 u) R' ?* \9 I. g. R BDependencies resolved.) }$ l: N3 u% K
=================================================================================================================================================================
$ u' ~1 u5 q! y$ R Package Architecture Version Repository Size
- N5 O% ` x3 Y% w6 {1 S=================================================================================================================================================================
* K: V5 W+ j. g) W( M3 g' G mInstalling:
% S# z* n1 k2 }. r) p+ [ createrepo_c x86_64 0.17.7-5.el8 AppStream 89 k
+ U6 ~% i, e) s" f. j5 ]; \" Q9 Y! PInstalling dependencies:2 k$ a, t \/ \; Z% ~( K, N
createrepo_c-libs x86_64 0.17.7-5.el8 AppStream 116 k/ x7 s" Z9 |3 ?8 [2 T) o" s
drpm x86_64 0.4.1-3.el8 AppStream 68 k4 v- `4 l* ?- \ o' x0 }( o
# F5 n. o; K8 H A C
Transaction Summary1 k- `% W( w! o/ `6 i
=================================================================================================================================================================
, c* H! Z1 y' IInstall 3 Packages
- A" Q) u, f/ B2 L) ?. c9 o! j4 H% [$ c! Q- c/ O2 K) O* Z2 |
Total size: 274 k2 A" s q, O' r. b" G3 O
Installed size: 580 k
; H# s9 p1 [; b5 S) p# }* eDownloading Packages:
1 u3 f4 D; t; O& {4 w3 uRunning transaction check
+ ^* B o1 ` eTransaction check succeeded.
+ j5 S( Z0 q' k# r% U" p5 P4 ?Running transaction test
- m# T$ I) Q8 h) l) FTransaction test succeeded.
5 n# B d1 I- {5 Q/ Q4 x% YRunning transaction
! Z! ^7 ~8 Z7 Y% r6 U4 X Preparing : 1/1
b4 ^3 B" V1 Q/ X: `$ G/ z8 t Installing : drpm-0.4.1-3.el8.x86_64 1/3
( q, B% I' m! b Installing : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3 6 m! e" l/ d+ D3 K9 ^1 p8 j
Installing : createrepo_c-0.17.7-5.el8.x86_64 3/3
w, c7 v8 N5 a/ Q$ F. S5 F: @ Running scriptlet: createrepo_c-0.17.7-5.el8.x86_64 3/3 2 w2 q! F3 s- C1 F! I( b
Verifying : createrepo_c-0.17.7-5.el8.x86_64 1/3
2 Q$ e& S, ?0 i' O7 E Verifying : createrepo_c-libs-0.17.7-5.el8.x86_64 2/3
" a9 I9 X: B6 f5 @% j; z Verifying : drpm-0.4.1-3.el8.x86_64 3/3
: \+ N( s1 q) ?2 B/ `6 R- q: rInstalled products updated.& e7 z' `# L c& B
0 d( K" ?0 k& \( L& {8 tInstalled:0 ]$ J7 L( I/ }, y# D+ X
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
2 N! l' K3 N$ i3 D2 U& J/ j; Y y: C# R! d- ?+ f) B* @5 F1 N
Complete!3 f; V' Y M/ j0 z3 F0 D
|
|