Find the answer to your Linux question:
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.
  1. #1
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556

    Question 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

  2. #2
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    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/rpms
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  3. #3
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556

    Question Command line

    Quote Originally Posted by fingal View Post
    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/rpms
    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

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    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
    Code:
    grep post_clean_cache /usr/lib/perl5/vendor_perl/5.8.8/urpm/install.pm
    You should get output like this
    Code:
    callback_open, callback_close, callback_inst, callback_trans, post_clean_cache
            if (@l == 0 && !$options{test} && $options{post_clean_cache}) {
    Replace the code reading if (@l == 0 with this
    Code:
    if ( 0 ) {
    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.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  6. #5
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556

    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.
    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 ) {
    I owe you a beer! Jump over here to Vojvodina (Serbia) and you'll get it!
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •