You are not logged in.

#1 2011-06-06 03:17:09

madek
Member
From: Santiago, Chile
Registered: 2009-09-08
Posts: 98
Website

pacSyu: a new update monitor and tray client

the user sonlink, from archlinux-es.org forum, has create a system tray tool to look for pacman updates, the name is pacSyu (doh), this work under dbus, python2 and gtk2
the entry in the blog is here: http://sonlinkblog.blogspot.com/p/pacsyu.html
git repo here: http://github.com/son-link/PacSyu
and aur package here: http://aur.archlinux.org/packages.php?ID=49600

screenshots are available shortly
comments, critics, suggest, and all this things are allowed
happy updating

Offline

#2 2011-06-06 12:55:27

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

Re: pacSyu: a new update monitor and tray client

Sigh.

Please don't use "pacman -Sy" in an automatic (pacsyud.py) fashion.  It turns Arch into a game of russian roulette.  One day it will burn you.  It is dangerous and can easily lead to all sorts of trouble.  Much safer is to use the following:

# Setup
mkdir -p /tmp/localsync
ln -s /var/lib/pacman/local /tmp/localsync &> /dev/null
# Call this regularly
fakeroot pacman -Syy --dbpath /tmp/localsync/ &> /dev/null
pacman -Qqu --dbpath /tmp/localsync/ | wc -l

Does not need root and does not risk serious breakage.  Credit to Falconindy for this hack, though I think he's got an even better method (pacupdate?) now.

Offline

#3 2011-06-06 21:37:10

madek
Member
From: Santiago, Chile
Registered: 2009-09-08
Posts: 98
Website

Re: pacSyu: a new update monitor and tray client

thanks for your tip

Offline

#4 2011-06-07 06:30:54

vinayv
Member
From: Bangalore, India
Registered: 2008-08-11
Posts: 89

Re: pacSyu: a new update monitor and tray client

keenerd wrote:

Credit to Falconindy for this hack, though I think he's got an even better method (pacupdate?) now.

I was checking the code of pacupdate. For update db, "pacman -Sy" is exactly what it does, albeit with a sudo..

Here is the snippet from updatechecker.py file in pacupdate:

    def sync_db(self):
        if not ProcessUpdate().db_islocked():
            print _('Syncing databases')
            try:
                if ProcessUpdate().run_background('sudo pacman -Sy') == 0:
                    return True
            except KeyboardInterrupt:
                return False
        else:
            print _('Pacman is already running!')
            return False

Offline

#5 2011-08-14 11:21:49

son_link
Member
From: Madrid, Spain
Registered: 2011-08-14
Posts: 2
Website

Re: pacSyu: a new update monitor and tray client

Hy guys. firts, sorry for my english.
I'm the programer of Pacsyu and now bring news:

Yesterday y commit the new release to the Git repo (r5), but 3 days ago i upload the r3.
These releases solve many bugs, include the coment for keenerd.
I remove the daemon and separate the program in modules, only is need necesary execute the program (change pacsyu-client for pacsyu only).
I hope this release is to your liking and I hope your opinions.
Thanks wink

Offline

Board footer

Powered by FluxBB