Unix Technical Forum

aptitude --purge

This is a discussion on aptitude --purge within the Debian Linux Users forum forums, part of the Debian Linux category; --> I find no way in aptitude to # aptitude install telnet-ssl Reading package lists... Done <- Get rid of ...


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux Users forum

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-27-2008, 07:05 AM
jidanni@jidanni.org
 
Posts: n/a
Default aptitude --purge

I find no way in aptitude to
# aptitude install telnet-ssl
Reading package lists... Done <- Get rid of these messages, and
The following NEW packages will be installed:
telnet-ssl
The following packages will be REMOVED:
telnet{a} <- also purge instead of removing. I.e., nothing like
APT::Get::Purge. The undocumented --purge doesn't work like apt-get's.
One must follow with a
# aptitude purge ~c
to clean up the mess.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-29-2008, 09:55 AM
Eugene V. Lyubimkin
 
Posts: n/a
Default Re: aptitude --purge

jidanni@jidanni.org wrote:
> I find no way in aptitude to
> # aptitude install telnet-ssl
> Reading package lists... Done <- Get rid of these messages, and
> The following NEW packages will be installed:
> telnet-ssl
> The following packages will be REMOVED:
> telnet{a} <- also purge instead of removing. I.e., nothing like
> APT::Get::Purge. The undocumented --purge doesn't work like apt-get's.
> One must follow with a
> # aptitude purge ~c
> to clean up the mess.
>
>

You are not right. Purge is {p}, not {a}.

--
Eugene V. Lyubimkin aka JackYF, Ukrainian C++ developer.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki09wsACgkQchorMMFUmYzKFwCgiKyUt23lWe NPS/rKocK3F/l8
1XMAmwTbZ2rUKVVoMbg8r64U0dA6vQE8
=32Yd
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-05-2008, 11:53 AM
jidanni@jidanni.org
 
Posts: n/a
Default Re: aptitude --purge

>>>>> "EVL" == Eugene V Lyubimkin <jackyf.devel@gmail.com> writes:

EVL> jidanni@jidanni.org wrote:
>> I find no way in aptitude to
>> # aptitude install telnet-ssl
>> Reading package lists... Done <- Get rid of these messages, and
>> The following NEW packages will be installed:
>> telnet-ssl
>> The following packages will be REMOVED:
>> telnet{a} <- also purge instead of removing. I.e., nothing like
>> APT::Get::Purge. The undocumented --purge doesn't work like apt-get's.
>> One must follow with a
>> # aptitude purge ~c
>> to clean up the mess.


EVL> You are not right. Purge is {p}, not {a}.

Yes, I'm saying I want a {p} but all I can get is an {a}. This is bug
486454 apparently, which is quite easy to reproduce by installing back
and forth telnet and telnet-ssl back and forth back and forth.

There is no working -o option that will allow you to install and purge
the residue in one single command. You need to clean up the config
files with a second aptitude command. Note, I only use the command
line and not the curses interface.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-05-2008, 11:53 AM
Daniel Burrows
 
Posts: n/a
Default Re: aptitude --purge

On Sat, Aug 30, 2008 at 12:05:10PM +0800, jidanni@jidanni.org was heard to say:
> Yes, I'm saying I want a {p} but all I can get is an {a}. This is bug
> 486454 apparently, which is quite easy to reproduce by installing back
> and forth telnet and telnet-ssl back and forth back and forth.


I never figured out what's going on in #486454, but this is a
completely different problem. That bug says that unused packages
aren't being removed at all from a user's system; I don't know why.
You are asking for aptitude to support purging packages that are
already being removed.

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-05-2008, 11:53 AM
Daniel Burrows
 
Posts: n/a
Default Re: aptitude --purge

On Wed, Aug 27, 2008 at 07:53:56AM +0800, jidanni@jidanni.org was heard to say:
> I find no way in aptitude to
> # aptitude install telnet-ssl
> Reading package lists... Done <- Get rid of these messages, and
> The following NEW packages will be installed:
> telnet-ssl
> The following packages will be REMOVED:
> telnet{a} <- also purge instead of removing. I.e., nothing like
> APT::Get::Purge. The undocumented --purge doesn't work like apt-get's.


There is no --purge option, which is presumably why it doesn't work.
The closest thing to it is --purge-unused, which causes packages being
removed because they're unused to also get purged.

According to the apt-get manual page, --purge purges anything that is
being removed. The only thing I can think of that gets you close to
what you want is "aptitude -s install telnet-ssl '?action(remove)_'",
but I don't think that is really adequate (it won't handle stuff that
gets removed due in interactive dependency resolution, for instance).

I thought at first that I could just set all the stuff being removed
to be purged as well, just before aptitude shows its prompt. But
that's not right either: the user should be able to cancel individual
purges and have that stick. So I guess the only way out is to hack the
backend so that when a hypothetical Aptitude::Purge is enabled, it
flicks packages to "purge" when they're first marked for removal and
not afterwards.

I suppose you could file a wishlist bug asking for this feature to be
added.

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-05-2008, 11:53 AM
Justin Jereza
 
Posts: n/a
Default Re: aptitude --purge

> The following packages will be REMOVED:
> telnet{a} <- also purge instead of removing. I.e., nothing like
> APT::Get::Purge. The undocumented --purge doesn't work like apt-get's.
> One must follow with a
> # aptitude purge ~c
> to clean up the mess.


If I understand you correctly, you want all automatically removed
packages to get purged instead. I have the following in my
~/.aptitude/config to do just that:

Aptitude "";
Aptitude::Purge-Unused "true";

--
Justin Jereza
LPIC-1


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 09-05-2008, 11:53 AM
Andrei Popescu
 
Posts: n/a
Default Re: aptitude --purge

On Wed,27.Aug.08, 09:41:15, Eugene V. Lyubimkin wrote:
> jidanni@jidanni.org wrote:
> > I find no way in aptitude to
> > # aptitude install telnet-ssl
> > Reading package lists... Done <- Get rid of these messages, and
> > The following NEW packages will be installed:
> > telnet-ssl
> > The following packages will be REMOVED:
> > telnet{a} <- also purge instead of removing. I.e., nothing like
> > APT::Get::Purge. The undocumented --purge doesn't work like apt-get's.
> > One must follow with a
> > # aptitude purge ~c
> > to clean up the mess.
> >
> >

> You are not right. Purge is {p}, not {a}.


Also, you probably need

Aptitude::Purge-Unused true;

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki2+ToACgkQqJyztHCFm9kY2QCfVyDe15mKid 9p8V2/kkylbSQf
afgAn1BqoumiqWYyuPTw6I+1g+Wu2JkJ
=ayPq
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 09-05-2008, 11:53 AM
Daniel Burrows
 
Posts: n/a
Default Re: aptitude --purge

On Sun, Aug 31, 2008 at 05:17:26PM +0800, Justin Jereza <justinjereza@gmail.com> was heard to say:
> > The following packages will be REMOVED:
> > telnet{a} <- also purge instead of removing. I.e., nothing like
> > APT::Get::Purge. The undocumented --purge doesn't work like apt-get's.
> > One must follow with a
> > # aptitude purge ~c
> > to clean up the mess.

>
> If I understand you correctly, you want all automatically removed
> packages to get purged instead. I have the following in my
> ~/.aptitude/config to do just that:
>
> Aptitude "";
> Aptitude::Purge-Unused "true";


Won't work: telnet-ssl is being purged by the greedy dependency
resolver (telnet conflicts with it), not because it's unused.

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 09-23-2008, 06:07 PM
Michelle Konzack
 
Posts: n/a
Default Re: aptitude --purge

Am 2008-08-27 07:53:56, schrieb jidanni@jidanni.org:
> I find no way in aptitude to
> # aptitude install telnet-ssl
> Reading package lists... Done <- Get rid of these messages, and
> The following NEW packages will be installed:
> telnet-ssl
> The following packages will be REMOVED:
> telnet{a} <- also purge instead of removing. I.e., nothing like
> APT::Get::Purge. The undocumented --purge doesn't work like apt-get's.
> One must follow with a
> # aptitude purge ~c
> to clean up the mess.


Not Read The Fine Manual?

man 8 aptitude

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFIu/JQC0FPBMSS+BIRAghxAJsEZbl4hzzvfGjo8mqYPIURxnBABACg lu17
Gu+q17HsDJCHY7LmM7iOBIk=
=NmSF
-----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads for: aptitude --purge

Thread Thread Starter Forum Replies Last Post
aptitude purge =?us-ascii?Q?Tammo_Schuelke?= Debian Linux Users forum 5 08-27-2008 07:04 AM
Mysql fails to install after "aptitude purge mysql-server --purge-unused" S D Debian Linux Users forum 0 06-18-2008 04:48 PM
aptitude purge flashplugin-nonfree hang Paul Csanyi Debian Linux Users forum 4 06-17-2008 04:00 AM
Purge Oid Miracapillo Alessandro pgsql Bugs 2 06-13-2008 03:01 PM
apt-get --purge Adam Hardy Debian Linux Users forum 3 03-17-2008 07:07 AM


All times are GMT. The time now is 08:00 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com