Hello All!
Under Bullseye on primary system Pi 3B+ as a x86 (and Bullseye on Pi4 X64) -
Pi 3B+ . . .
I have as a cron job a simple /usr/bin/apt update
I would like to replace it with upgrade but cannot find a way to do it as it requires a response to the msg (not exact)
update [Y/n) etc.
So I looked at a simple bash script that has :
/usr/bin/apt upgrade << EOF
Y
but that does not work (because of the 2nd parameter to it so then tried : '/usr/bin/apt upgrade' << EOF that also produces
I have as a cron job a simple /usr/bin/apt update
I would like to replace it with upgrade but cannot find a way to do
it as it requires a response to the msg (not exact) update [Y/n) etc.
Any one with a working solution ?
Basically want to run this say weekly to ensure it is kept up to date as
the system runs normally stand alone with one application written in
Cobol - hey,
I'm an old school prog back to the times of M/F's, mini's then S100 bus micros.
On Wed, 05 Oct 2022 18:34:40 +1300, Vincent Coen wrote:
Any one with a working solution ?echo "Y" | /usr/bin/apt upgrade
Basically want to run this say weekly to ensure it is kept up to date
as the system runs normally stand alone with one application written in
Cobol - hey, I'm an old school prog back to the times of M/F's, mini's
then S100 bus micros.
Re: Setting up an auto system update
By: Vincent Coen to All on Wed Oct 05 2022 18:34:40
Hello All!
Under Bullseye on primary system Pi 3B+ as a x86 (and Bullseye on
Pi4 X64) - Pi 3B+ . . . I have as a cron job a simple
/usr/bin/apt update I would like to replace it with upgrade but
cannot find a way to do it as it requires a response to the msg
(not exact) update [Y/n) etc.
So I looked at a simple bash script that has :
/usr/bin/apt upgrade << EOF
Y
but that does not work (because of the 2nd parameter to it so
then tried : '/usr/bin/apt upgrade' << EOF that also produces
it won't work ... all you gott a do..... *drum roll*
apt upgrade -y
On Wed, 05 Oct 2022 19:38:04 +0000, Martin Gregorie wrote:
On Wed, 05 Oct 2022 18:34:40 +1300, Vincent Coen wrote:
Any one with a working solution ?echo "Y" | /usr/bin/apt upgrade
yes | /usr/bin/apt upgrade
it won't work ... all you gott a do..... *drum roll*Thanks that works, now why could I not see that param - may be not in the man apt nor in info apt displays :)
apt upgrade -y
Sysop: | Weed Hopper |
---|---|
Location: | Clearwater, FL |
Users: | 14 |
Nodes: | 6 (0 / 6) |
Uptime: | 231:17:32 |
Calls: | 55 |
Calls today: | 1 |
Files: | 50,127 |
D/L today: |
29 files (3,538K bytes) |
Messages: | 275,358 |