Re: [arch-general] Check for update in script

2014-09-12 Thread Yamakaky
Le 12/09/2014 20:15, Jason Ryan a écrit : On 11/09/14 at 10:06pm, Yamakaky wrote: pacman provides a `checkupdates` script, see /usr/bin/checkupdates for how it works. Wow, I didn't know this one, thanks ! pacman -Ql pacman | awk -F/ '/bin/ {print $4}' /J Yes, I know, but I never used this

Re: [arch-general] Check for update in script

2014-09-12 Thread Jason Ryan
On 11/09/14 at 10:06pm, Yamakaky wrote: pacman provides a `checkupdates` script, see /usr/bin/checkupdates for how it works. Wow, I didn't know this one, thanks ! pacman -Ql pacman | awk -F/ '/bin/ {print $4}' /J -- http://jasonwryan.com/ [GnuPG Key: B1BD4E40] pgpuT2uicQOda.pgp Descri

Re: [arch-general] Check for update in script

2014-09-12 Thread Savyasachee Jha
On Fri, Sep 12, 2014 at 1:36 AM, Yamakaky 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 und

Re: [arch-general] Check for update in script

2014-09-12 Thread Yamakaky
It can certainly be done. You can always do a "pacman -Su" later, if you want. The problem is that I want to check for updates in a script. 'pacman -Sy' without upgrade can cause problems. In your use case, you can probably specify an alternative db path using the --dbpath switch in pacman.

Re: [arch-general] Check for update in script

2014-09-12 Thread Yamakaky
pacman provides a `checkupdates` script, see /usr/bin/checkupdates for how it works. Wow, I didn't know this one, thanks !

Re: [arch-general] Check for update in script

2014-09-11 Thread Savyasachee Jha
On Thu, Sep 11, 2014 at 10:31 PM, Yamakaky wrote: > Hi > > I can't find a good way to check for available upgrades without touching > the database, as running `pacman -Sy` without `u` isn't supported. Any idea > ? Maybe a new pacman switch like "--upstreamdbpath" to toggle change the > location o

Re: [arch-general] Check for update in script

2014-09-11 Thread Jakub Klinkovský
On 11.09.14 at 19:01, Yamakaky wrote: > Hi > > I can't find a good way to check for available upgrades without touching the > database, as running `pacman -Sy` without `u` isn't supported. Any idea ? > Maybe a new pacman switch like "--upstreamdbpath" to toggle change the > location of sync/ witho