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


Groups > linux.debian.user > #173200

Re: aptitude cli options vs. apt-get (esp. --ignore-hold option)

From Darac Marjal <mailinglist@darac.org.uk>
Newsgroups linux.debian.user
Subject Re: aptitude cli options vs. apt-get (esp. --ignore-hold option)
Date 2016-10-05 11:50 +0200
Message-ID <soQZP-7rL-11@gated-at.bofh.it> (permalink)
References <soQGt-7ks-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Oct 05, 2016 at 11:19:52AM +0200, Michael Lange wrote:
>Hello,
>
>I use the following line (borrowed from apticron) in a script to generate
>a list of upgradable packages:
>
>PKGNAMES=`apt-get -q -y -s --ignore-hold --allow-unauthenticated dist-upgrade | \
>          /bin/grep ^Inst | /usr/bin/cut -d\  -f2 | /usr/bin/sort`
>
>Now I would like to do the same with aptitude, so the user may pick which
>program they prefer to install the available updates.
>The aptitude equivalent I have come up with so far is:
>
>PKGNAMES=`aptitude -v -y -s --allow-untrusted full-upgrade | \
>          /bin/grep ^Inst | /usr/bin/cut -d\  -f2 | /usr/bin/sort`

aptitude is, generally speaking, a more user-friendly interface to the 
apt system. If you're scripting (and especially as it already works), 
you should stick with apt-get. apt-get's output tends to be more stable 
and more readily parsable.

Is there some feature of aptitude that apt is missing? What's your 
motivation for switching to aptitude here?

>
>I figure that probably --allow-untrusted does the same for aptitude as
>--allow-unauthenticated does for apt-get (?) , however from man aptitude I
>cannot see anything like apt-get's --ignore-hold option.
>
>So my question is: is there a way to include updates to packages put on
>hold to the output of "aptitude full-upgrade" as in apt-get, that I have
>been missing, or is this simply not possible?
>
>Regards
>
>Michael
>
>.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.
>
>You are an excellent tactician, Captain.  You let your second in
>command attack while you sit and watch for weakness.
>		-- Khan Noonian Singh, "Space Seed", stardate 3141.9
>

-- 
For more information, please reread.

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


Thread

aptitude cli options vs. apt-get (esp. --ignore-hold option) Michael Lange <klappnase@freenet.de> - 2016-10-05 11:30 +0200
  Re: aptitude cli options vs. apt-get (esp. --ignore-hold option) Darac Marjal <mailinglist@darac.org.uk> - 2016-10-05 11:50 +0200
    Re: aptitude cli options vs. apt-get (esp. --ignore-hold option) Michael Lange <klappnase@freenet.de> - 2016-10-05 12:10 +0200
  Re: aptitude cli options vs. apt-get (esp. --ignore-hold option) Jörg-Volker Peetz <jvpeetz@web.de> - 2016-10-05 17:40 +0200
    Re: aptitude cli options vs. apt-get (esp. --ignore-hold option) Michael Lange <klappnase@freenet.de> - 2016-10-05 20:30 +0200
  aptitude cli undocumented behaviour [was: aptitude cli options vs.  apt-get ...] Michael Lange <klappnase@freenet.de> - 2016-10-05 20:50 +0200
    Re: aptitude cli undocumented behaviour [was: aptitude cli options  vs. apt-get ...] Jörg-Volker Peetz <jvpeetz@web.de> - 2016-10-05 22:40 +0200
      [solved]Re: aptitude cli undocumented behaviour [was: aptitude cli  options vs. apt-get ...] Michael Lange <klappnase@freenet.de> - 2016-10-06 01:10 +0200

csiph-web