{"id":559,"date":"2024-11-22T13:02:07","date_gmt":"2024-11-22T07:32:07","guid":{"rendered":"https:\/\/swstech.sws-international.com\/?p=559"},"modified":"2024-11-22T13:02:07","modified_gmt":"2024-11-22T07:32:07","slug":"replicating-an-rhel-rocky-linux-system-on-a-machine-that-has-no-internet-access","status":"publish","type":"post","link":"https:\/\/swstech.sws-international.com\/?p=559","title":{"rendered":"Replicating an RHEL \/ Rocky Linux system on another RHEL machine that has no internet access"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><strong>Problem: Internet access is missing on target system where setup has to be done<\/strong><\/p>\n\n\n\n<p>Need: To setup a new system based upon an existing system, by capturing binary installable of all user installed packages and install them on remote system<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"generating_zip_containing_binary_installers_for_all_required_packages\">Generating Zip containing Binary installers for all required packages<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">dnf history userinstalled &gt; target-packages.lst\n<strong>mkdir<\/strong> pkgs\ncd pkgs\n<strong>sudo<\/strong> dnf download `<strong>cat<\/strong> ..\/target-packages.lst` --resolve\ncd ..\n<strong>zip<\/strong> -r pkgs.zip pkgs<\/pre>\n\n\n\n<p>Edit<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"copy_to_target_system\">Copy to target system<\/h2>\n\n\n\n<p>Use scp \/ rsync \/ OneDrive Link \/ other method to take pkgs.zip file to other system<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"install_rpm_binaries\">Install rpm binaries<\/h2>\n\n\n\n<p>Download \/ copy file zip file to target system and run following commands for installation<\/p>\n\n\n\n<pre>\nunzip pkgs.zip\nsudo dnf install pkgs\/*.rpm\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"figuring_out_all_currently_installed_packages\">Figuring out all currently installed packages<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dnf repoquery --installed --queryformat '%{name}' > all-installed-pkgs.lst<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Internet access is missing on target system where setup has to be done Need: To setup a new system [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7],"tags":[],"class_list":["post-559","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=\/wp\/v2\/posts\/559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=559"}],"version-history":[{"count":0,"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=\/wp\/v2\/posts\/559\/revisions"}],"wp:attachment":[{"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swstech.sws-international.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}