I want to install packages on a ArchLinux machine, which does not have internet connection.
I am following the link https://wiki.archlinux.org/index.php/Offline_Installation_of_Packages (section “Normal Method: Pacman”).
The command “pacman -Sp –noconfirm xorg-server” lists the dependency but not the complete
url to download from. Any ideas how to get the list of dependent packages with the url to download from. I am using pacman version 4.0.2-libalpm v7.0.2.
I reproduced the behavior you describe by disabling all repository mirrors.
When I fix it back, the output looks like:
Now to what probably needs to be fixed.
1)
/etc/pacman.confHere’s an excerpt from mine (“Repositories” section):
2) The mirror list (
/etc/pacman.d/mirrorlist)The mirror list that you include in
pacman.confneeds to have some records uncommented.and so on. Note that the URLs generated by
pacman -Spactually use the first entry in the mirror list.3) Another note on the instructions in the ArchWiki article: you don’t actually need to download both
.dband.tar.gzfiles. The.dbfiles actually are tarballs themselves, and contain the very same files and folders. So you can just downloadcore.db,community.dbandextra.dband put them in/var/lib/pacman/sync.