Help on ofline package installations

Issues related to applications and software problems and general support
Post Reply
shoeb.ch
Posts: 2
Joined: 2021/08/26 08:14:57

Help on ofline package installations

Post by shoeb.ch » 2021/09/01 05:49:41

When I do install any package using yum/dnf the request goes to the internet and try to download the necessary things for the requested package. The problem is the proxy server which is restricting this and installation is failed.
How can I install packages offline so that it doesn't get effected by proxy server. Note that I'm able to transfer files to that server.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Help on ofline package installations

Post by TrevorH » 2021/09/01 08:18:10

Either add proxy related parameters to yum.conf or disable the repos (use yum-config-manager or edit the /etc/yum.repos.d/*.repo files directly). See man yum.conf for info on the proxy parameters.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

shoeb.ch
Posts: 2
Joined: 2021/08/26 08:14:57

Re: Help on ofline package installations

Post by shoeb.ch » 2021/09/01 10:22:47

TrevorH wrote:
2021/09/01 08:18:10
Either add proxy related parameters to yum.conf or disable the repos (use yum-config-manager or edit the /etc/yum.repos.d/*.repo files directly). See man yum.conf for info on the proxy parameters.
I did proxy configuration and used to do the dnf/yum update/installation perfectly. But recently it is blocked at the proxy server end. Can I download all the necessary files from the internet on my laptop and then transfer them to the server. From there I will use dnf/yum install to install packages without going to the internet. How it is possibele?

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Help on ofline package installations

Post by jlehtone » 2021/09/01 11:54:08

I simply use rsync to copy repository directory tree from nearby repo mirror and then define local repos that point to those copies.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Help on ofline package installations

Post by TrevorH » 2021/09/01 12:05:16

For information on how to go about setting up a local CentOS mirror please see https://wiki.centos.org/HowTos/CreateLocalMirror
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply