Code Monkey home page Code Monkey logo

Comments (9)

Lythenas avatar Lythenas commented on July 17, 2024 1

I'm on Ubuntu 22.04. I used the following:

  • command to list packages: /bin/sh -c "/usr/lib/update-notifier/apt-check --package-names 2>&1"
  • disable output parsing
  • command to update packages: gnome-terminal -- /bin/sh -c "set -x; sudo apt update && sudo apt upgrade ; echo Done - Press enter to exit; read _"
  • Pacman local directory: /var/lib/dpkg/info (although this one did not work, but looking at the code, I think the extension does not pick up the new path after changing it in the settings)

You need to install update-notifier-common (was already installed for me).

I can add this to the wiki, but would be good if someone validates it first. Possibly also on other debian(-based) distros.

from arch-update.

Miccio-AN avatar Miccio-AN commented on July 17, 2024 1

In fact, that's exactly what I tried to do.
At the moment my system is up to date and it "seems" to work.
As soon as I check when there are new updates I will let you know!

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on July 17, 2024

Hi,
Yes it should be possible, although a bit of research may be needed to adjust settings :

  • command to list pending updates
  • command to upgrade
  • folder to monitor for changes
    I'm surprised nobody added this to the wiki yet !

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on July 17, 2024

Indeed, folder monitoring change needs a restart. I shall fix this.

from arch-update.

Miccio-AN avatar Miccio-AN commented on July 17, 2024

I can't find the command to list packages in Debian 12.
Maybe can I use something like this?

/bin/apt-get dist-upgrade | grep -o "^[[:digit:]]+"

But: even without the "apt update" command ?

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on July 17, 2024

Debian 12 does not have "update-notifier-common" package ?

from arch-update.

Miccio-AN avatar Miccio-AN commented on July 17, 2024

Apparently not - Unfortunately that package doesn't exist in Debian

from arch-update.

RaphaelRochet avatar RaphaelRochet commented on July 17, 2024

Fact is, as a normal user yon can't update package list, so you need either something to check updates with no root access (under Arch this what we do) or check for updates in the background.
Maybe look into unattended-upgrades package in debian ? It is meant for automatic updates but maybe it can update without installing ? Then something like apt list --upgradeable might be a start point to list upgrades (however it seems not script-friendly)

from arch-update.

Lythenas avatar Lythenas commented on July 17, 2024

After searching a bit I found this: https://unix.stackexchange.com/a/105486 You might be able to run it without sudo because of the -s (simulate) flag. But not sure.

Although you need to change the output to match what this extension expects.

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.