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

Re: APT 0.3.2 offline use



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
apt versions support a hidden remove function that is mentioned in the man
page, it looks like this

apt-get install foo-

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*`

(untested of course)

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

Jason


Reply to: