The officially official Devuan Forum!

You are not logged in.

#1 2022-09-25 08:05:45

driver
Member
Registered: 2022-09-25
Posts: 7  

package-update-indicator

Just found out about package-update-indicator and read in this thread that gnome-packagekit is required to use the full functionality, which might be true for out-of-the-box funtionality but there is an option in preferences to run a custom command for applying updates.
FluxBB bbcode test

I changed it to /usr/bin/xfce4-terminal which opens the terminal when I click "Install updates". So far so good, but how can I make it open the terminal and run sudo apt upgrade?

Offline

#2 2022-09-25 12:08:01

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 147  
Website

Re: package-update-indicator

/usr/bin/xfce4-terminal -x sudo apt upgrade

Last edited by aitor (2022-09-25 12:08:55)


If you work systematically, things will come by itself (Lev D. Landau)

Offline

#3 2022-09-25 13:22:57

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,737  

Re: package-update-indicator

A bit more universal:

x-terminal-emulator -e 'sudo apt upgrade'

The x-terminal-emulator alternative should point to the default emulator, which will be xfce4-terminal in an Xfce system. Using the alternative allows the command to work for all desktops regardless of the specific terminal emulator in use.


"Who's the idiot in charge?" — ralph.ronnquist

Offline

#4 2022-09-25 13:23:33

driver
Member
Registered: 2022-09-25
Posts: 7  

Re: package-update-indicator

Thank you aitor! Looking forward for updates rolling in.

Offline

#5 2022-09-25 13:25:33

driver
Member
Registered: 2022-09-25
Posts: 7  

Re: package-update-indicator

Head_on_a_Stick wrote:

A bit more universal:

x-terminal-emulator -e 'sudo apt upgrade'

The x-terminal-emulator alternative should point to the default emulator, which will be xfce4-terminal in an Xfce system. Using the alternative allows the command to work for all desktops regardless of the specific terminal emulator in use.

Thank you, very helpful!

Offline

Board footer