Link to home
Start Free TrialLog in
Avatar of ManieyaK_
ManieyaK_Flag for United States of America

asked on

Ubuntu Offline Repo

Hello how would one go about setting up an offline repository to keep Ubuntu updated?
Avatar of David Favor
David Favor
Flag of United States of America image

Unsure what you mean by this.

You can setup a local repo + you'll still require Internet access for your local repo to remain updated.

The way Ubuntu manages remote repos is so efficient + Internet connections so fast, much less of a requirement to do this anymore.

Better to just use normal Ubuntu repos.

https://www.maketecheasier.com/setup-local-repository-ubuntu/ provides a full walkthrough of this process.
Avatar of ManieyaK_

ASKER

our entire environment is disconnected.  That article assumes the server will have internet access.  I'm thinking maybe have the online repo sync to a repo on an external drive then transfer to server?  How would you sync the online repo to a repo on external device?
I'm trying to stig our Ubuntu machine, one of the findings states "vlock" package needs to be installed.  To check whether it's installed run the following command:
# dkpg -l | grep vlock

When i run the command it completes with no output  or errors.  Is there something I'm doing wrong?
ASKER CERTIFIED SOLUTION
Avatar of skullnobrains
skullnobrains

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You said, "our entire environment is disconnected.  That article assumes the server will have internet access.  I'm thinking maybe have the online repo sync to a repo on an external drive then transfer to server?  How would you sync the online repo to a repo on external device?"

You must arrange for some type of connection, as you must arrange for .rpm files to install move from some remote repository to your local repository. How you do this... is up to you...

After you've synced your local repository with a remote repository, then you can do your installs/updates as required.
If your dpkg command produces no output, the means there's no package installed containing the string vlock.

Note: The vlock package is optional, so you must install this specifically to have this package available.