Re: Check for update in script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Sep 12, 2014 at 1:36 AM, Yamakaky <yamakaky@xxxxxxxxxxxx> wrote:

 In your use case, you can probably specify an alternative db path
>> using the --dbpath switch in pacman.
>>
>
> That's what I wanted to do, but dbpath countains the local and upstream
> databases, so I thought it might cause problems.
>

If I understand it right, and correct me if I do not, you can use pacman
-Syy --dbpath /tmp/pacman-update/, right? That way, if you want to check
the local databases (currently installed and active), you can use pacman
-Si <package-name> and if you want to check the latest ones, you can use
pacman -Si --dbpath /tmp/pacman-update/ <package-name>. I think that this
is the same mechanism as used by the check-updates script. That script just
cleans up a bit more, but fundamentally uses this same switch.

-- 
Savyasachee Jha

*"Aerodynamics is for people whodon't know how to build engines."*


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux