From: wimpunk on
Hi,

I'm trying to find a way to detect which packages are added
since installing the basic system. Maybe it is question for scripting
guys, or maybe there is a program for it, but I didn't found it.
Let me try to explain what exactly I'm looking for.

When installing SuSE Linux Enterprise Server, you select the best
fitted option from the YaST Software Manager. Let us call this
collection INSTALLED_PACKAGES.
While using the system, you add some packages based on your needs. As
far as I remember, one of those was the mc package. Let us call this
collection ADDED_PACKAGES. This is the list I'm trying to created.
As far as I remember, while installing mc, it also installed the slang
package. So the ADDED_PACKAGES install packages they require which we call
DEPEND_PACKAGES.

So I want to generate a list with the real ADDED_PACKAGES, not the
DEPEND_PACKAGES. Actually, my final goal is to verify if there
wasn't a better fitted choise while installing the system en choosing
the options in the Software Manager.

Is there anyone out there with some hints?

Kind regards,

wimpunk.
From: Alan on
wimpunk wrote:

> Hi,
>
> I'm trying to find a way to detect which packages are added
> since installing the basic system. Maybe it is question for scripting
> guys, or maybe there is a program for it, but I didn't found it.
> Let me try to explain what exactly I'm looking for.
>
> When installing SuSE Linux Enterprise Server, you select the best
> fitted option from the YaST Software Manager. Let us call this
> collection INSTALLED_PACKAGES.
> While using the system, you add some packages based on your needs. As
> far as I remember, one of those was the mc package. Let us call this
> collection ADDED_PACKAGES. This is the list I'm trying to created.
> As far as I remember, while installing mc, it also installed the slang
> package. So the ADDED_PACKAGES install packages they require which we
> call DEPEND_PACKAGES.
>
> So I want to generate a list with the real ADDED_PACKAGES, not the
> DEPEND_PACKAGES. Actually, my final goal is to verify if there
> wasn't a better fitted choise while installing the system en choosing
> the options in the Software Manager.
>
> Is there anyone out there with some hints?
>
> Kind regards,
>
> wimpunk.

# man rpm
(especially the --last option)
e.g.
# rpm -qa --last

with a bit of scripting work you could select out anything installed AFTER
the original install date

--
email ~= s/nospam//
From: Eef Hartman on
wimpunk <ybwdlapvxvun(a)spammotel.com> wrote:
> While using the system, you add some packages based on your needs. As
> far as I remember, one of those was the mc package. Let us call this
> collection ADDED_PACKAGES. This is the list I'm trying to created.
> As far as I remember, while installing mc, it also installed the slang
> package. So the ADDED_PACKAGES install packages they require which we call
> DEPEND_PACKAGES.

The system doesn't know anymore which packages are only installed because of
dependencies for other packages.
So i.e. when you REMOVE mc it won't remove slang too as it doesn't know that
it was only because OF the dependency to mc that this was added.

Others have already given you the --last option to rpm, with which you can
make a date-sorted list of all packages and then (with an editor or grep)
remove the "install list" ones (they will be the oldest ones so at the END
of the list as --last sorts on "newest first".
--
*******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M.Hartman(a)tudelft.nl - phone: +31-15-278 82525 **
*******************************************************************
From: J G Miller on
On Fri, 05 Mar 2010 10:15:34 +0100, Eef Hartman wrote:

> The system doesn't know anymore which packages are only installed
> because of dependencies for other packages.

But you can use rpm to ascertain which packages depend on a particular
package and so manually build a list of other packages which can be
removed when removing something which has dependencies.

From: Taki on
On 03/05/2010 04:14 AM, J G Miller wrote:
> On Fri, 05 Mar 2010 10:15:34 +0100, Eef Hartman wrote:
>
>> The system doesn't know anymore which packages are only installed
>> because of dependencies for other packages.
>
> But you can use rpm to ascertain which packages depend on a particular
> package and so manually build a list of other packages which can be
> removed when removing something which has dependencies.
>

You can try "rpmorphan" from the Packman repo.
 |  Next  |  Last
Pages: 1 2
Prev: How to refresh an installation?
Next: DVDs