Unix Technical Forum

Keep Removed packages?

This is a discussion on Keep Removed packages? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> It's taken me years to get around to asking this, but ... Is there any reason, other than an ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:13 PM
Richard Herbert
 
Posts: n/a
Default Keep Removed packages?

It's taken me years to get around to asking this, but ...

Is there any reason, other than an historical one, to keep the files in
/var/log/removed_packages, and /var/log/removed_scripts? Mine are
currently occupying a combined 22.4 MB's. I don't see why they can't
just be rm'd, but I'm wondering if there's a gotcha lurking. Something
possibly to do with 'removepkg -preserve'?

Thanks.

--
Richard Herbert
Registered Linux user 14329
If there's nothing wrong with me, then ...
there must be something wrong with the Universe!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 09:14 PM
Joost Kremers
 
Posts: n/a
Default Re: Keep Removed packages?

Richard Herbert wrote:
> It's taken me years to get around to asking this, but ...


well, i hope any follow-ups of you in this thread won't take as long. ;-)

> Is there any reason, other than an historical one, to keep the files in
> /var/log/removed_packages, and /var/log/removed_scripts? Mine are
> currently occupying a combined 22.4 MB's. I don't see why they can't
> just be rm'd, but I'm wondering if there's a gotcha lurking.


i have no experience with emptying /var/log/removed_*, but a quick
examination of the package tools doesn't reveal anything. pkgtool itself
calls the files created there 'logfiles', and the other programs don't seem
to read anything from them. installpkg will create the directories if they
don't exist, and removepkg writes to them, but that's it. i didn't find any
other reference to them in the other programs.

> Something
> possibly to do with 'removepkg -preserve'?


no, certainly not. 'removepkg -preserve' only works when you actually
remove a package. i.e., you cannot create a copy of the package's contents
in /tmp after you've deleted it.

so just go ahead and delete them.

--
Joost Kremers joostkremers@yahoo.com
Slackware doesn't have any quirks. Other distros have quirks. Slackware's
just pure Linux.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 09:14 PM
Joost Kremers
 
Posts: n/a
Default Re: Keep Removed packages?

Richard Herbert wrote:
> It's taken me years to get around to asking this, but ...


well, i hope any follow-ups of you in this thread won't take as long. ;-)

> Is there any reason, other than an historical one, to keep the files in
> /var/log/removed_packages, and /var/log/removed_scripts? Mine are
> currently occupying a combined 22.4 MB's. I don't see why they can't
> just be rm'd, but I'm wondering if there's a gotcha lurking.


i have no experience with emptying /var/log/removed_*, but a quick
examination of the package tools doesn't reveal anything that might cause
problems. pkgtool itself calls the files created there 'logfiles', and the
other programs don't seem to read anything from them. installpkg will
create the directories if they don't exist, and removepkg writes to them,
but that's it. i didn't find any other reference to them in the other
programs.

> Something
> possibly to do with 'removepkg -preserve'?


no, certainly not. 'removepkg -preserve' only works when you actually
remove a package. i.e., you cannot create a copy of the package's contents
in /tmp after you've deleted it.

so just go ahead and delete them.

--
Joost Kremers joostkremers@yahoo.com
Slackware doesn't have any quirks. Other distros have quirks. Slackware's
just pure Linux.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 09:16 PM
Richard Herbert
 
Posts: n/a
Default Re: Keep Removed packages?

"Joost Kremers" <joostkremers@yahoo.com> wrote:

> well, i hope any follow-ups of you in this thread won't take as long.
> ;-)


Not a chance with this group. ;-)

> i have no experience with emptying /var/log/removed_*, but a quick
> examination of the package tools doesn't reveal anything. pkgtool
> itself calls the files created there 'logfiles', and the other
> programs don't seem to read anything from them. installpkg will create
> the directories if they don't exist, and removepkg writes to them, but
> that's it. i didn't find any other reference to them in the other
> programs.


Me neither. I looked at the Package Utilities section of Slackbook, but
the closest I came was the reference to /var/adm/removed_packages.
Google was no help at all. The fact that no other programs read
anything from them kinda makes them orphans, doesn't it?

> no, certainly not. 'removepkg -preserve' only works when you actually
> remove a package. i.e., you cannot create a copy of the package's
> contents in /tmp after you've deleted it.


From the Book (pasted from the site):

"-preserve The package is removed, but copied to the preserved packages
directory at the same time."

I'm gonna try it just once to satisfy my curiosity. It mentions a
directory I don't have on my system (yet).

> so just go ahead and delete them.


Thanks for the help. I will.

--
Richard Herbert
Registered Linux user 14329
If there's nothing wrong with me, then ...
there must be something wrong with the Universe!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 09:16 PM
George Georgakis
 
Posts: n/a
Default Re: Keep Removed packages?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Herbert <linux14329@sympatico.ca> wrote:

> Is there any reason, other than an historical one, to keep the
> files in /var/log/removed_packages, and /var/log/removed_scripts?


No. You can safely delete the contents of /var/log/removed_*

The only reason to retain them would be for revision history
purposes. None of Slackware's package utilties rely on files
held in these directories.

- --
George Georgakis - geeg AT tripleg net au -
http://www.tripleg.net.au/
SlackBuild Central - http://slackpack.tripleg.net.au/

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBP94c7klp3nJf7PixEQKrYACg87IH8iaowL5uTGduPOouKV D7MzMAoMtY
nYz5A2xZDHOYLW1Uj/1zz6Ho
=DjM8
-----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


All times are GMT. The time now is 08:16 AM.


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