You are not logged in.

#1 2015-06-07 18:27:13

nbd
Member
Registered: 2014-08-04
Posts: 389

How to query package info from the server repo instead of local DB?

Greetings!

Is there an option in pacman to query the package info ( like -Si ) from the server repo instead of the local package database? Or maybe some additional program is needed for this?

Update: Maybe this can be done by downloading a fresh copy of package DB with -Sy, but how to specify a custom package DB file? Is this accomplished with --dbpath option? Say

pacman -Sy --dbpath /tmp/tmpdb

Last edited by nbd (2015-06-07 18:44:23)


bing different

Offline

#2 2015-06-07 18:45:06

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: How to query package info from the server repo instead of local DB?

nbd wrote:

Greetings!

Is there an option in pacman to query the package info ( like -Si ) from the server repo instead of the local package database? Or maybe some additional program is needed for this?

The info displayed by -Si is the info from the server repo. -Qi displays the local info. Please read the Pacman man page for further information.

Moving to newbie corner.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2015-06-07 18:47:07

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: How to query package info from the server repo instead of local DB?

nbd wrote:

Or maybe some additional program is needed for this?

You could use your browser.
https://www.archlinux.org/packages/

Offline

#4 2015-06-07 18:47:29

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: How to query package info from the server repo instead of local DB?

nbd wrote:

Update: Maybe this can be done by downloading a fresh copy of package DB with -Sy, but how to specify a custom package DB file? Is this accomplished with --dbpath option? Say

pacman -Sy --dbpath /tmp/tmpdb

The checkupdates script that comes with pacman does something like that.

Offline

#5 2015-06-07 18:49:25

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: How to query package info from the server repo instead of local DB?

Xyne wrote:
nbd wrote:

Greetings!

Is there an option in pacman to query the package info ( like -Si ) from the server repo instead of the local package database? Or maybe some additional program is needed for this?

The info displayed by -Si is the info from the server repo. -Qi displays the local info. Please read the Pacman man page for further information.

Moving to newbie corner.

How could one interpret this?

[root@kw etc]# checkupdates | grep pcre
pcre
[root@kw etc]# pacman -Si pcre | grep Version
Version        : 8.37-1
[root@kw etc]# pacman -Qi pcre | grep Version
Version        : 8.37-1
[root@kw etc]# 

bing different

Offline

#6 2015-06-07 19:02:27

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: How to query package info from the server repo instead of local DB?

nbd wrote:

How could one interpret this?

[root@kw etc]# checkupdates | grep pcre
pcre
[root@kw etc]# pacman -Si pcre | grep Version
Version        : 8.37-1
[root@kw etc]# pacman -Qi pcre | grep Version
Version        : 8.37-1
[root@kw etc]# 

Ok, after updating your original post and asking this question I understand what you are actually trying to do. The "local package database" generally refers to /var/lib/pacman/local, not /var/lib/pacman/sync, which is why it was unclear.

fakeroot pacman -Syb /tmp/tmpdb -i pcre

should do what you want, but be very careful never to install anything using that temporary database. Take a look at the checkupgrades script to see how it does things if you want to do more than just check remote package info.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#7 2015-06-07 19:15:04

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: How to query package info from the server repo instead of local DB?

Please explain what you are *really* trying to do.
Also https://github.com/MrElendig/kittypack


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2015-06-07 21:56:40

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: How to query package info from the server repo instead of local DB?

What I want to do is just to check beforehand what will happen when -Syu is run. E.g. if some package in new version got additional 200 Mb required dependendies for functionality which isn't needed.

Xyne:

Thanks for the advise!


bing different

Offline

#9 2015-06-08 07:10:04

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: How to query package info from the server repo instead of local DB?

nbd wrote:

what will happen when -Syu is run

Your system will be fully updated.

If you don't like the dependencies pulled in by a package, use the ABS to build it without them.
https://wiki.archlinux.org/index.php/Arch_Build_System

Offline

#10 2015-06-08 23:34:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to query package info from the server repo instead of local DB?

Check the AUR, it sometimes has various versions of the same package: one with minimal dependencies, another with the kitchensink thrown in.

Offline

Board footer

Powered by FluxBB