You are not logged in.

#1 2012-04-23 08:01:15

hadian
Member
From: Yazd, Iran
Registered: 2008-09-09
Posts: 74
Website

[SOLVED] install by pacman in offline mode

I want to instal arch on a PC wich is not connected to a fast internet connection. i can install the base system by arch CD and pdate the database but it is very difficult to update the system and install gnome and other packages using its internet connection. i want to get the list of required packaes from this PC and download them by another PC which its OS is not arch and then transfer them to the first PC and do the update procerss and installing other packages. i had a look at https://bbs.archlinux.org/viewtopic.php?id=80404 but could not find the command to get the package list and their download links. i hope i can get a list that can be used to download the packages on ubuntu by axel or aria2 downloader.

Last edited by hadian (2012-04-24 12:02:27)

Offline

#2 2012-04-23 08:15:59

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] install by pacman in offline mode

One option is to use a local repository (on another pc in your lan, on an external harddisk,...) and basically install the packages from there. Have a look at this wiki article for more info. Another option is to simply download the required packages from a random mirror, transfer them to your Arch machine and install them with "pacman -U <packagename>.tar.xz".


Burninate!

Offline

#3 2012-04-23 08:21:13

hadian
Member
From: Yazd, Iran
Registered: 2008-09-09
Posts: 74
Website

Re: [SOLVED] install by pacman in offline mode

thanks.
since the other computer is not in the same lan and its os is ubuntu. so i prefer the second method. would anybody let me know the command to do this?

Offline

#4 2012-04-23 08:26:41

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] install by pacman in offline mode

You can look up whatever packages and/or package groups you need, download the packages from one of the mirrors, move them to your Archsystem to be and install them with "pacman -U".


Burninate!

Offline

#5 2012-04-23 09:40:08

hadian
Member
From: Yazd, Iran
Registered: 2008-09-09
Posts: 74
Website

Re: [SOLVED] install by pacman in offline mode

yes, but i am looking for a script to a command to give me the download links of all the required packages not doing manually which needs somadays...... something like this post: https://bbs.archlinux.org/viewtopic.php?id=80404

Offline

#6 2012-04-23 11:42:34

theDOC
Member
From: Aachen, Germany
Registered: 2009-06-18
Posts: 50

Re: [SOLVED] install by pacman in offline mode

maybe you can setup a virtual machine on the ubuntu system, install arch to your needs, and then copy the files from "/var/cache/pacman/pkg/" dir to the PC with the crappy internet.

Offline

#7 2012-04-23 12:00:34

hadian
Member
From: Yazd, Iran
Registered: 2008-09-09
Posts: 74
Website

Re: [SOLVED] install by pacman in offline mode

i think pacman is more powerful than this and there is a command that can do this.

Offline

#8 2012-04-23 12:13:26

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] install by pacman in offline mode

pacman -pS <packagename>

This is literally documented in pacman's manpage btw:

-p, --print
    Only print the targets instead of performing the actual operation (sync, remove or upgrade). Use --print-format to specify how targets are displayed. The default format string is "%l", which displays URLs with -S, filenames with -U and pkgname-pkgver with -R.

Last edited by Gcool (2012-04-23 12:19:00)


Burninate!

Offline

#9 2012-04-24 12:02:06

hadian
Member
From: Yazd, Iran
Registered: 2008-09-09
Posts: 74
Website

Re: [SOLVED] install by pacman in offline mode

thanks. this is whay i was looking for.

Offline

Board footer

Powered by FluxBB