Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175282

Re: Detect upgradable packages in shell script ran as a non-root user

From Shin Ice <shin.ice@shinice.net>
Newsgroups linux.debian.user
Subject Re: Detect upgradable packages in shell script ran as a non-root user
Date 2016-11-30 16:40 +0100
Message-ID <sJf9f-7RM-5@gated-at.bofh.it> (permalink)
References <sJeGd-7Ih-25@gated-at.bofh.it> <sJePU-7Lw-33@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Nov 30, 2016 at 10:13:40AM -0500, Greg Wooledge wrote:
> On Wed, Nov 30, 2016 at 05:09:20PM +0200, Martin T wrote:
> > I would like to run a cron job which periodically checks if I have
> > upgradable packages. One way to do it is probably like this:
> > 
> > $ apt-get upgrade -s | grep -q "^0 upgraded"
> 
> But you have to run apt-get update first, AS root.  (Your subject line
> includes the phrase "as a non-root user", but you neglected to include
> this important piece of information in the body of the email.  I say
> this now, because someone might change the subject header later.)
> 

root is needed for the update, maybe what you search is cron-apt ;)

https://debian-administration.org/article/162/A_short_introduction_to_cron-apt
-- 

I'm just a placeholder for a really awesome signature...
...that is still missing *sob*

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Detect upgradable packages in shell script ran as a non-root user Martin T <m4rtntns@gmail.com> - 2016-11-30 16:10 +0100
  Re: Detect upgradable packages in shell script ran as a non-root user Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-30 16:20 +0100
    Re: Detect upgradable packages in shell script ran as a non-root user Shin Ice <shin.ice@shinice.net> - 2016-11-30 16:40 +0100
  Re: Detect upgradable packages in shell script ran as a non-root user Liam O'Toole <liam.p.otoole@gmail.com> - 2016-11-30 18:50 +0100
  Re: Detect upgradable packages in shell script ran as a non-root  user Joe <joe@jretrading.com> - 2016-11-30 19:40 +0100
  Re: Detect upgradable packages in shell script ran as a non-root user kushal@locationd.net - 2016-12-01 06:20 +0100
  Re: Detect upgradable packages in shell script ran as a non-root  user Tixy <tixy@yxit.co.uk> - 2016-12-02 09:00 +0100
    RE: Detect upgradable packages in shell script ran as a non-root  user Bonno Bloksma <b.bloksma@tio.nl> - 2016-12-02 12:40 +0100
  Re: Detect upgradable packages in shell script ran as a non-root user Jonathan Dowland <jmtd@debian.org> - 2016-12-02 12:50 +0100

csiph-web