How to remove old versions of updated packages in Fedora 4

Hi experts,
I did my first installation of Linux with Fedora 4 on my laptop and updated all the packages online.
In the online update preferences i checked the box for make update rollbacks possible.
i guess that's why i have always new and older versions of packages installed on my laptop
such as kdebase, openoffice.org-wrtiter and so on...

how can i remove the older versions of these packages.
do i have to write for each yum remove package name, if yes how can i specify the version?

another question is, how can i install packages or applications when they are not in .rpm format
such as .tar.gz or .tar.bz2

thanks
cakirfatihAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tim_UtschigCommented:
> how can i remove the older versions of these packages.
>do i have to write for each yum remove package name, if yes how can i specify the version?

I don't think there's an easy way, but you might do something like:

    rpm -q `rpm -qa | sort | perl -an -F- -e 'print join("-",splice(@F,0,$#F-1))."\n"' | sort | uniq -d` > dups

Then edit the "dups" file, deleting the lines with the newer version of each package, and go:

   yum remove `cat dups`

If it asks to remove stuff you didn't specify, then say "n" and let me know.  I don't have a Fedora installation that isn't up-to-date, so I can't test this out myself yet.

> another question is, how can i install packages or applications when they are not in .rpm format
> such as .tar.gz or .tar.bz2

Usually these files will contain source code which you must compile.

To extract the files, use this for .tar.bz2 files:

    tar jxf file.tar.bz2

and for .tar.gz files:

    tar zxf file.tar.gz

Usually I list the files first to see if they fall under a reasonable path:

    tar ztf file.tar.gz | less

or:

    tar jtf file.tar.bz2 | less

If they're not all under a directory such as "programName-1.0", then I mkdir for it, cd to it, and then extract the files.

To compile and install, for most programs the commands to execute will be simply:

    ./configure
    make
    make install

But read the README and/or INSTALL file(s) first to see what they say.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pjedmondCommented:
If you wish to remove a specific package, then you can

rpm -e package name

However, bear in mind that some packages require specific versions of other packages. As a result removing the package forceably using the --force option may 'break' other packages that rely on it.

HTH:)
cakirfatihAuthor Commented:
Tim,

today i tried your method nad it removed almost all of the packages in the list.
only there was an error with the nautilus packages. but i guess thats fine with me

thanks for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.