A way to display updates status in the conky

Forum Forums General Software A way to display updates status in the conky

  • This topic has 47 replies, 10 voices, and was last updated Apr 21-11:50 pm by BobC.
Viewing 3 posts - 46 through 48 (of 48 total)
  • Author
    Posts
  • #33852
    Member
    ex_Koo
      Helpful
      Up
      0
      ::

      apt-get dist-upgrade -s –quiet=2 | grep ^Inst | wc -l

      #34824
      Member
      ex_Koo
        Helpful
        Up
        0
        ::

        I an interesting way to see how many packages you have installed and to check for updates in a bar without the next for any script.

        print_packages() {
        Packages=”$(apt list –installed | wc -l || pacaman -Q | wc-l)”

        printf ” Packages: $Packages | ”

        print_upgrades() {
        Upgrades=”$(aptitude search ‘~U’ | wc -l || pacman -Qu)”

        printf ” Upgrades: $Upgrades | ”

        • This reply was modified 3 years ago by ex_Koo.
        • This reply was modified 3 years ago by ex_Koo.
        #35168
        Moderator
        BobC
          Helpful
          Up
          0
          ::

          That’s pretty cool, so if you are on an arch based distro it uses pacman, and if debian based, then aptitude…

          I have too many packages, LOL.

        Viewing 3 posts - 46 through 48 (of 48 total)
        • You must be logged in to reply to this topic.