[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: APT 0.3.2 offline use



On Wed, Mar 17, 1999 at 12:26:56PM -0700, Jason Gunthorpe wrote:
> 
> On Wed, 17 Mar 1999, Sven LUTHER wrote:
> 
> > > apt-get remove
> > > try running apt-get without parameters :)
> > 
> > it does not speak of any remove command in the help message last week, only
> > update, install and various upgrade and dist* stuff.
> > 
> > but then maybe the remove command is not documented, or was added since i last
> > tested it ...
> 
> The remove command was recently added to APT v3 (in potato). However all

no apt v3 in potato, only :

-rw-rw-r--   1 ftp      ftp           555 Mar 12 19:52
/debian/dists/potato/main/source/admin/apt_0.1.10.1.dsc
-rw-rw-r--   1 ftp      ftp        588526 Mar 12 19:52
/debian/dists/potato/main/source/admin/apt_0.1.10.1.tar.gz

> apt versions support a hidden remove function that is mentioned in the man
> page, it looks like this
> 
> apt-get install foo-

nice to know, ...

> 
> You can achieve your goal of removing all of gnome using some magic shell
> scriptage and apt-get remove, perhaps,
> 
> apt-get remove `awk '/^Package:/{print $2}' < /var/state/apt/lists/*gnome*`
> 

yes, but not all gnome packages are labeled gnome, some are libzwt, some are
orbit, ...

> (untested of course)
> 
> You could also combind that with v3's apt-cache search function to do
> other types of removes/installs.

will have to look at it more in depth, don't have time though :( ...

Friendly,

Sven LUTHER


Reply to: