Results 1 to 5 of 5
I still cannot find my RPMS, that means urpmi is still cleaning packages after the installation.
Daark.Child was so kind to offer me as a solution to create alias in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-10-2007 #1
About RPMs again
I still cannot find my RPMS, that means urpmi is still cleaning packages after the installation.
Daark.Child was so kind to offer me as a solution to create alias in .bashrc:
alias urpmi='urpmi --noclean'
I did it and my .bashrc looks like now:
# .bashrc
# User specific aliases and functions
alias urpmi = 'urpmi --noclean'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
But I still cannot keep my downloaded RPM's.
Any other solution?If you need a CD/DVD catalogizer, give a try to my program:
http://www.kde-apps.org/content/show...content=100682
Linux Usert#430188
- 08-11-2007 #2
Hi - have you tried using the --noclean option directly from the command line? You would type urpmi --noclean package_name .
Rpms would be stored in /var/cache/urpmi/rpmsI am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso
- 08-11-2007 #3
Command line
Yes, but I would like to avoid working from command line. I hope that the goal of a GUI driven package manager is to make life easier. It'd be funny to browse packages in rpmdrake and type commands into Konsole.
There's a logical nonsense in default cleaning the cache:
how could user install packages on another PC, with no internet access?
If I didn't want to keep packages, I could simlpy delete the cache, but on other hand I can't create packages from nowhere.
Where do I'm wrong?
This shall not make Mandriva a popular distro.
I'm looking for a solution to make --noclean option default for urpmi. Have somebody figured out how to do that ?If you need a CD/DVD catalogizer, give a try to my program:
http://www.kde-apps.org/content/show...content=100682
Linux Usert#430188
- 08-11-2007 #4
You didn't make it clear that you wanted to avoid using a CLI.
That alias won't work with the GUI version of the software installer, because the GUI version depends on a perl programme or two to work.
I don't advise you to try this (even though I've started living dangerously myself) but you may need to do some command line editing if you feel brave.
Type the following
You should get output like thisCode:grep post_clean_cache /usr/lib/perl5/vendor_perl/5.8.8/urpm/install.pm
Replace the code reading if (@l == 0 with thisCode:callback_open, callback_close, callback_inst, callback_trans, post_clean_cache if (@l == 0 && !$options{test} && $options{post_clean_cache}) {
Then if that works, buy me a large beer ... But like I said, this might not work, and bear in mind I stole this idea from someone else, so don't ask me too much. Instead read this.Code:if ( 0 ) {I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso
- 08-11-2007 #5
Solved
I don't know what are doing these commands but for security reasons I'm copying all the text of solution, cos it solved the problem.
I owe you a beer! Jump over here to Vojvodina (Serbia) and you'll get it!urpmi -v rgrep
rgrep -irl "post_clean_cache" /usr/lib/perl5/*
rgrep -irl "removing installed rpms" /usr/lib/perl5/*
You find out that this is where the action is
/usr/lib/perl5/vendor_perl/5.8.8/urpm/install.pm
there comment this line
#if (@l == 0 && !$options{test} && $options{post_clean_cache}) {
and replace it by
if ( 0 ) {If you need a CD/DVD catalogizer, give a try to my program:
http://www.kde-apps.org/content/show...content=100682
Linux Usert#430188


Reply With Quote

