Re: Replicating an installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2020-04-06 at 07:20 +0200, Fabrice BAUZAC-STEHLY wrote:
> Hi there,
> 
> Geoffrey Leach writes:
> 
> > My internet service comes over a satellite, and with it a relatively
> > small monthly download allowance. Which motivates the following
> > question.
> > 
> > Once I have installed a new disto and downloaded the RPMs that I use, is
> > there a procedure by which I could gather together everything that I
> > have added, so that I could transfer the files (RPMs, or whatever) to
> > a local system, without resorting to the internet? (Or, at least, to a
> > significant amount!)
> 
> In your situation I think I would look into setting up a caching proxy
> such as Squid.  It should be able to cache many kinds of files you may
> need on several of your machines, not only rpms downloaded by dnf but
> maybe also some common webpages, javascript or images you download via a
> browser from several machines.
> 
> This is a need I had for a set of 2-3 Debian systems, where I simply
> installed a pre-made configuration dedicated to .deb packages [1].  I'm
> not knowledgeable enough to update the configuration for caching HTML
> and images though.
> 
> Does anybody have enough Squid knowledge to setup such a proxy for rpm
> and more?
> 
> [1] https://packages.debian.org/en/jessie/squid-deb-proxy
> 
> Thanks!
> 
> Best regards

Not absolutely certain this is relevant to your case, ...

The approach I have been using recently is to  down load a live
image (XFCE in my case) and save on a fast USB stick.

Select something like "Install to Hard drive" when the Live image is booted.

The install from a live XFCE image to a "clean" SSD only takes 2 or 3 mins.

Boot the new installation.
To avoid immediate dnf update, disable ... (can't remember what)!!

//--------------------------------
Then create a local repo.
I use a network NFS repo site but I guess an external USB stick
could be used.


>From my notes:

dnf install createrepo_c	#createrepo_c already present 	F31
To install a plugin
dnf install python3-dnf-plugins*  #Only installs python3-dnf-plugins-extras-common F31
dnf install python3-dnf-plugin-local		#The vital one	F31
//--------------------------------
Create Local Repo, ...
To automatically add all "directly installed" rpms to the /global/local_repos/31 repo

geany /etc/dnf/plugins/local.conf and add repodir = /global/local_repos/31 to the [main] section
Better?		Yes	F31
sed -i.ja.bak '\+# repodir = /var/lib/dnf/plugins/local$+arepodir = /global/local_repos/31' \
/etc/dnf/plugins/local.conf
//--------------------------------
mkdir /global/local_repos/31				If not present		F31
NB the 'EOF_LOCAL_REPO' quotes disables parameter substitution within its body.
cat > /etc/yum.repos.d/local-31-update.repo << 'EOF_LOCAL_REPO'
[local-31-update]
name=Local ja Fedora $releasever $basearch Updates
cost=1
baseurl=file:///global/local_repos/$releasever/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$release-$basearch
metadata_expire=120
EOF_LOCAL_REPO
//-----------------------------------
Testing
dnf install pcmanfm
dnf config-manager --dump or dnf config-manager local-30-update --dump
dnf repoquery --repoid=local-31-update		Tested OK	F31

//-----------------------------------
dnf update           should then populate the local repo.
//-----------------------------------
All my machines are set up like this so that when dnf update is run
on what ever machine the local repo is updated and subsequent updates of
the same packages on other machines are taken from there.

John

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux