Jump to content

Keeping updates/Installed software rpm's? [solved]


jagwah
 Share

Recommended Posts

It seems that the info available throughout this thread,

 

https://mandrivausers.org/index.php?showtopic=32766&st=0

 

which to summarize is,

 

Open the file /usr/sbin/rpmdrake

search for "post_clean_cache"

change the 1 to a0

&

"clean_all => 1" to 0

save the file.

 

no longer works with 2007.1. Sooooooo, anyone know how to keep the updates/installations that are done through MCC software Manager, and not have them deleted?

Link to comment
Share on other sites

I can't find anything on Google, but I know it can be done. There's an option for /etc/urpmi/urpmi.conf that is the equivalent to the -noclean option.

It might be as simple as adding this at the head of your urpmi.conf file:

{
 noclean
}

 

Yves.

Link to comment
Share on other sites

An alternative might be to use Smart instead of rpmdrake as your package installer. I've been using it for about 6 months now & haven't had any problems at all. It has extra benefits such as being able to add repository mirrors (in case your regular one is down). You can set it to keep installed rpm's:

 

How do I keep the downloaded files after installation?

 

You can do this once by using smart -o remove-packages=false <install|upgrade> , or set this as a permanent option using smart config --set remove-packages=false . The files are kept on /var/lib/smart/packages .
Link to comment
Share on other sites

I almost forgot about this thread :wall:

 

Thanks to both of you, looks like I'll give Smart a whirl. Kubuntu (synaptic) was good, it did it by default, and there was a check box where you could just select to either keep or delete them. Wish there was something like that in MCC. Oh well.

 

Thanks again.

Link to comment
Share on other sites

  • 2 weeks later...

Thanks to Emmanuel_uk :thumbs: , an answer to this problem is,

 

open the file /usr/lib/perl5/vendor_perl/5.8.8/urpm/install.pm

comment out the following line, by placing an # in front of it, so the following line,

 

if (@l == 0 && !$options{test} && $options{post_clean_cache}) {

 

becomes

 

#if (@l == 0 && !$options{test} && $options{post_clean_cache}) {

 

then add the following line

 

if ( 0 ) {

 

I just tested it, and it seems to work fine with both MCC and urpmi (CLI)

 

Links to emmanuel_uk's posts on the subject,

 

https://mandrivausers.org/index.php?showtopic=40963&hl=

 

and a direct link to the linuxquestions.org thread,

 

http://www.linuxquestions.org/questions/sh...ad.php?t=349112

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...