LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-23-2008, 02:50 PM   #1
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
Be careful when removing orphan packages


So far I really like Mandriva 2009. I had a minor issue with my NFS stuff trying to mount before the network was up.

The only other issue I had was related to the orphan removal. Here's the scenario:

I installed the default 2009 / KDE4 and finished setting up the basic system. Then I installed task-gnome.

I got the message that there were orphans, so I went to a command line and entered the suggested orphan removal urpme command.

Like a fool, I didn't look closely at the removal list. I just accepted it.

Guess what. It removed KDE. NOT GOOD !!!

No, I did not uncheck task-kde.

Otherwise an excellent product. I just won't use orphan removal until it is stable and robust.

I just wanted to warn others that might avoid such a mishap that might make them decide against using this distro.
 
Old 10-23-2008, 05:18 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,681
Blog Entries: 33

Rep: Reputation: 287Reputation: 287Reputation: 287
Hi, thanks for the headsup.

I also used the orphan tool. It's a lot better that rpm-orphan, or deb-orphan used to be.

Aside from that, the urpmi skip list is handy to stop installing stuff you don't want.

Smart also has a version lock facility, so you can keep what you want and upgrade the rest.

You always have to watch the output of those programs. You, the user are the last line of defense.

I generally, copy any list, and then wade through it manually removing the packages, and watching for any deps that might break the system.

to re-install kde4, using urpmi

urpmi kdebase4-runtime kdebase4-workspace

and any deps (when on initial install this equates to approx 100 packages)

A nice way to check what is missing...

rpm -Va | grep miss

Will list missing libs (this might take a while to complete), you may get back to your kde setup this way.

Another good cleanup utility is fslint, but for all other files (and copies), not the rpm database.

Regards, Glenn

Last edited by GlennsPref; 10-23-2008 at 05:20 PM. Reason: clarity
 
Old 10-23-2008, 08:06 PM   #3
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Original Poster
Rep: Reputation: 34
FYI, my original post was meant to be informational, not a request for help. I had no problem getting KDE back. I just re-installed task_kde and everything is back to normal. It was only an minor inconvenience for me, but for a newbie it might have been a show stopper.
 
Old 10-24-2008, 04:41 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,681
Blog Entries: 33

Rep: Reputation: 287Reputation: 287Reputation: 287
I did say thanks!

I guess it was rhetorical.

regards, Glenn
 
Old 11-04-2008, 02:02 AM   #5
phidor
Member
 
Registered: Apr 2005
Location: Timaru, New Zealand
Distribution: Garuda - wrestling with xmonad at chewing-gum & barb-wire level
Posts: 105

Rep: Reputation: 15
Hi Glenn or any others...

When I tried upgrading Mandriva 2009 using urpmi, these two files:
kdebase4-workspace4.1.2 release 13.3
oxygen-icon-theme4.1.2 release 3.2
will both not download (they freeze in the last one or two seconds)
- is this, maybe, because of orphans I have removed?!

Phidor.
 
Old 11-04-2008, 04:05 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,681
Blog Entries: 33

Rep: Reputation: 287Reputation: 287Reputation: 287
Hi, I don't think it is. phidor.

They are quite large packages, oxygen-icon-theme is about 30Mb.

I would persist, retry.

if you're using cli urpmi try thr --noclean switch.

After the install the package may be found /var/cache/urpmi/rpms

I know with the smart package manager you can retry and it will keep adding to the cache until you stop trying or the job is completed.

It is not because of removed orphans.

Cheers, Glenn
 
Old 11-04-2008, 02:43 PM   #7
phidor
Member
 
Registered: Apr 2005
Location: Timaru, New Zealand
Distribution: Garuda - wrestling with xmonad at chewing-gum & barb-wire level
Posts: 105

Rep: Reputation: 15
The --noclean CLI option worked perfectly - for both packages. Although I did not want either of them 'twas immensely satisfying beating the problem - the goal being to understand what I am doing. In this regard thank you Glenn, your help is genuinely valued. I love Linux and the human help in the Linux community is the most wonderful part of it!

Cheers, Phidor.
 
Old 11-04-2008, 07:41 PM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,681
Blog Entries: 33

Rep: Reputation: 287Reputation: 287Reputation: 287
Phidor, one more thing, you can make your own rpm database on your system, copy all rpm's from

/var/cache/urpmi/rpms to a safe place for future use.

then when you have a few there, run genhdlist2 on the directory and it will generate the md5sum, hdlist, etc and you will be able to add it to your Mandriva Local rpm database.

This can save you having to download the same package twice. Especially the larger ones like you mentioned above, approx. 50Mb.

Cheers, Glenn

ps. If you want kde4.1.2, you'll need both of those.
 
Old 11-04-2008, 08:09 PM   #9
phidor
Member
 
Registered: Apr 2005
Location: Timaru, New Zealand
Distribution: Garuda - wrestling with xmonad at chewing-gum & barb-wire level
Posts: 105

Rep: Reputation: 15
Thanks Glenn. I went to /var/cache/urpmi/rpms and did this: [root@localhost rpms]# genhdlist2 ./
whence this stuff came up on the screen:

adding 2 new rpms not available in existing hdlist
replacing .//media_info/hdlist.cz with hdlist.cz.tmp
replacing .//media_info/synthesis.hdlist.cz with synthesis.hdlist.cz.tmp
updating .//media_info/MD5SUM

and I discovered a new folder in /var/cache/urpmi/rpms called 'media_info' containing the sort of info that you mentioned.

How am I now able to add it to my "Mandriva Local rpm database," as you suggest?

Under what conditions would I have to "download the same package twice." please?

BTW yes, I use want kde4.1.2.
__________________
 
Old 11-05-2008, 12:13 AM   #10
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,681
Blog Entries: 33

Rep: Reputation: 287Reputation: 287Reputation: 287
Hi Phidor.

You'd be best to move them(.rpm's) to another directory, as that is a system dir. and you won't be able to control what gets kept if you use rpmdrake (the GUI).

I have mine in a directory /local/Archive/rpms and I call it local-rpms, must be different to the system names. Maybe your home dir is big enough. For instance /home/phidor/rpms

Once you do that run, in my case

urpmi.addmedia Local-Rpms file://local/Archive/rpms with media_info/hdlist.cz

That will add Local-Rpms to my database.

Also, I discovered that if you get a failed download while using urpmi, add --resume

that should pickup any unfinished downloads,

these incomplete packages are usually named package.name.ver.rpm.part.

I haven't tried it yet.

You may get the double-up of packages if you do what I direct here.

However you will be stung for the download if you leave them (.rpm's) in the cache

as urpmi disregards any files there after install
(they are usually deleted and therefore not kept track of by default).

You can get around this by urpmi package.name --media Local-Rpms

urpmi will install those first.

I usually use genhdlist2 without the ./ but mostly the whole address...

genhdlist2 /local/Archive/rpms

The info you got is right, from genhdlist2.

hope this helps, Glenn

Last edited by GlennsPref; 11-05-2008 at 12:15 AM. Reason: spelling/typos
 
Old 11-05-2008, 01:38 AM   #11
phidor
Member
 
Registered: Apr 2005
Location: Timaru, New Zealand
Distribution: Garuda - wrestling with xmonad at chewing-gum & barb-wire level
Posts: 105

Rep: Reputation: 15
Thanks Glen! This last bit seems pretty straightforward. I really do appreciate the effort you have expended to get the detail clear.Thanks again, Philip (Phidor).
 
Old 11-05-2008, 01:56 AM   #12
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,681
Blog Entries: 33

Rep: Reputation: 287Reputation: 287Reputation: 287
I have just been going through a similar process to get my networked machine up-to-date.

So it was current anyway, and I don't mind.

The reason I use /local or /home

is that I have them on separate partitions from those of the system, especially /usr, /root and / ,

because these are the directories that are overwritten when re-installing(if you really have to),

for some (unknown) reason.

Eg, if you format / and your /home directory is on the same partition, say goodbye to /home.

That happends to me a bit, 2 times a year at least, lol.

Cheers Glenn

ps. now I'm trying to setup the permissions to access the nfs shared folders on my net. Any Tips? I can see the folders, but can't mount them. (new ground for me)

Last edited by GlennsPref; 11-05-2008 at 01:58 AM. Reason: add question
 
Old 11-05-2008, 08:31 PM   #13
phidor
Member
 
Registered: Apr 2005
Location: Timaru, New Zealand
Distribution: Garuda - wrestling with xmonad at chewing-gum & barb-wire level
Posts: 105

Rep: Reputation: 15
For interest: the CLI urpmi --noclean option has solved another irritating problem for me. I had no help system in Openoffice version 3 so,
I uninstalled the help that had been installed with the Mandriva package manager and then reinstalled, this time from the CLI using the --noclean option and behold, my OO3 help system is now there! Thanks - again - Glenn for your valued help!

Philip (Phidor)
 
Old 11-05-2008, 08:35 PM   #14
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,681
Blog Entries: 33

Rep: Reputation: 287Reputation: 287Reputation: 287
Hey, no worries, it's all in the help file, it's just knowing when to use it.

cheers, Glenn
 
Old 03-02-2009, 08:13 AM   #15
Sscheme
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
Same thing happened to me i reinstall kde but it deleted most of packages that belongs to applications. How can i learn which packages removed by the command. I need something like the log of console operations.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remove unused / orphan packages keratos Linux - Software 5 09-04-2008 01:01 PM
is there a way to remove orphan packages? keratos Mandriva 5 06-20-2007 02:43 AM
orphan packages and libraries alexrait1 Slackware 1 07-05-2004 06:18 PM
removing packages..??? mhd_Ahmed Linux - Newbie 4 08-22-2003 12:46 PM
when they say be careful doin something its a good idea to be careful lol eagle0669 Linux - Newbie 3 08-10-2001 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration