Programs offline installer?

Hello everybody …
how can I install programs in offline mode such as vscode
please explain the way in simple way for newers make it easy as xxx.deb

Hi @sma-coding,

I’m guessing you’ll need to download it along with all its dependencies, and their dependenccies on a computer that has internet access, first from a mirror. I think. Followed by then copying/moving those downloaded files to the computer without access’ cache directory and running the installation.

Although possible, I expect that it can become very complicated soon. Especially if the target computer isn’t up-to-date.

I think it’d just be easier, and possibly better, to try and get thee computer at least a temporary, preferably permanent internet connection.

1 Like

I think

please read the description of “pacman -U” options.

1 Like

ok I will

cannot anybody help in plain English and easy way for the new users

sorry, we are no service-agents that do the job for you. we don’t get paid for it and we also have a life . we can give you tips where to find informations but it’s your job to read and use this infos.

2 Likes

I really, really don’t know how my explanation could be any more plain English. But the links @Olli gave is also relevantly plain, and it has examples.

If this is still not plain enough for you, I honestly recommend you try a distribution like Ubuntu. At least until you understand terms like dependencies and so forth.

2 Likes

there is no way

Yes there is.
Its already been shown pacman -U
Whether here, on a wiki, the man pages … you will have to read something to gain an understanding.

3 Likes

If that’s true, I suggest you use another, point-release distribution for that PC.

Consult pacman(8) — Arch manual pages

caveats

:warning:
While it is technically possible to innstall a package using this approach, it is error prone and may create weird issues or errors on the target system.

These errors is due to the rolling base of a Manjaro system.

The dependencies of any given package may already be present as a dependency for another package.

If a dependency is updated without the depending package(s) being updated as well, those depending package(s) may cease to function or create runtime errors.

You have now been warned - if you continue down this alley - you are on your own - don’t come back and tell me it was a bad idea - I already know - been there - done that …

So why am I writing this - one has to like this quote

Unix was not designed to stop its users from doing stupid things, as that would also stop them from doing clever things.
— Doug Gwyn

pacman manual

You will learn from the manual, how you can use pacman to download the installation packages and store in an arbitrary location.

get the package

To e.g. download libreoffice-fresh, save it to a tmp folder in your home and install it onto an offline system.

First make the temporary folder

mkdir ~/tmp

Download the package

sudo pacman -S libreoffice-fresh --cachedir ~/tmp --downloadonly

Now you can copy the content of the temp folder to an usb - move to another system - mount the device, navigate to the folder on the device where the files is located and run

sudo pacman -U libreoffice-fresh-$VERSION-x86_64.pkg.tar.zst

Realize the $VERSION will be ever changing - depending on your branch and the time of execution - so you will have to adjust your command accordingly.

Please observe that this will not work as you think - even if the package is not currently installed - it would only work partially as some dependencies may already be present.

To include the dependencies listed in the package - one would need to create a script capable of extracting the dependencies from the package and pull those as well.

find dependencies

Doing some more manual reading you will also learn how you can view dependency information about any given package using

pacman -Si libreoffice-fresh

fetch dependencies

Continuing the libreoffice example - you could use some command line fu to get the dependencies as well and feed them to pacman and store them with the package

sudo pacman -S --cachedir ~/tmp --downloadonly  $(pacman -Si libreoffice-fresh | awk -F'[:]' '/^Depends/ {print $2}')

The commands could be combined into one

sudo pacman -S libreoffice-fresh --cachedir ~/tmp --downloadonly  $(pacman -Si libreoffice-fresh | awk -F'[:]' '/^Depends/ {print $2}')
1 Like