Giter Site home page Giter Site logo

Comments (12)

RaphaelRochet avatar RaphaelRochet commented on June 10, 2024

The command is right; if you replace /usr/bin/checkupdates by /usr/bin/yaourt -Qqu -a you should have both AUR and regular repos updates.

Does /usr/bin/yaourt -Qqu -a shows updates in a terminal ?

from arch-update.

skogsmaskin avatar skogsmaskin commented on June 10, 2024

Today it worked and notified me about a community-package. Not sure why it did not yesterday. Maybe bacause the widget was restarted through a reboot after I changed the settings?

Seems to work now though. Closing this ticket. Thank you for your kind reply.

from arch-update.

skogsmaskin avatar skogsmaskin commented on June 10, 2024

Hmm..Closed it too early. It notified me about a community package this morning and I thought it was allright. But not about the regular packages (non-AUR) that came this afternoon.

In order to make it check for both regular packages and AUR-packages I had to do it with this command:

/bin/sh -c "/usr/bin/checkupdates &> /dev/null && /usr/bin/yaourt -Qu -a"

It updates and syncs the regular package list with checkupdates first (which uses fakeroot). Then it lists those packages + updates and shows the list of any new packages in the AUR with yaourt afterwards.

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on June 10, 2024

You're right, yaourt works like pacaur, and shows only AUR updates with -a flag. Sorry I've should have check that before. (I did not test AUR support myself)
But your command does not list non-AUR packages. You should not ignore checkupdates output, instead chain both scripts :
/bin/sh -c "/usr/bin/checkupdates ; /usr/bin/yaourt -Qqu -a"
If this works I will update the wiki.

from arch-update.

skogsmaskin avatar skogsmaskin commented on June 10, 2024

Yaourt also shows pending regular packages (after the sync with checkupdates). That is why I had to silence checkupdates - otherwise I would get double.

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on June 10, 2024

Sounds strange. Checkupdates does not store anything after it's run.
Yaourt shows regular updates only if system databases are updated (with -Syu flag)

If you continue to ignore checkupdates output, you will not see new updates until you run yaourt -Syu.

from arch-update.

skogsmaskin avatar skogsmaskin commented on June 10, 2024

checkupdates does two things:

fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /dev/$
pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'

As far as I could tell my command worked, but I may be wrong. It is very hard to test, as I have to wait for new packages to arrive :)

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on June 10, 2024

Yes. But the db in $CHECKUPDATES_DB is not read by subsequent yaourt calls. (I mean the newly sync data part)

from arch-update.

skogsmaskin avatar skogsmaskin commented on June 10, 2024

I have added your command to test. We have to wait and see. ⌚

from arch-update.

skogsmaskin avatar skogsmaskin commented on June 10, 2024

I can confirm that your suggested command is the right one. The reason I got it double was because I did yaourt -Suy --aur in between.

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on June 10, 2024

Ok thanks for the feedback. I'll update the wiki.
Edit : wiki updated 😄

from arch-update.

skogsmaskin avatar skogsmaskin commented on June 10, 2024

Closing this then :)

from arch-update.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.