LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 10-05-2016, 01:28 PM   #1
ballsystemlord
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 214

Rep: Reputation: Disabled
Need to reinstall Gentoo but do NOT want to re-download packages


Hello,
My RAM went bad and, in spite of my efforts to repair the damage, took several unknown pieces of my software and trashed them (the trashed packages include at least gcc).
I've tried reinstalling them without success.
I looks like I will have to rebuild my whole system. I do have backups, but not of the whole system.
The problem is that when I tried this before (I tried to setup a test environment), I bind mounted the distfiles dir and portage rejected every single one of the distfiles in the dir.
I checked the sha256/512 whirlpool sums with my then functional system and they were fine. I also tried altering the time stamps with touch to no avail. Eventually, I set up lighttpd and had the test system download from the real one.
I will not have lighttpd for my new setup.
How can I tell portage to try the distfiles that I've already got?
 
Old 10-05-2016, 03:45 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What do you mean by rejected? What is the error message you got?
 
Old 10-05-2016, 09:47 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Maybe this idea using local copy or nfs will work.

"Use nfs (network file system) to mount the /usr/portage/distfiles (or better yet /usr/portage) from one machine on the other. This means that the whole portage tree will be shared -> you only have to emerge sync on one machine too"

https://forums.gentoo.org/viewtopic-...3-start-0.html
 
Old 10-08-2016, 05:31 AM   #4
ballsystemlord
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 214

Original Poster
Rep: Reputation: Disabled
I received no error message or warning. Portage just started redownloading all selected packages. At first I thought it was me.
I could setup the environment and then try further debugging from there. I have the space.
As for nfs, that's not the problem. The files are visible from ls.
 
Old 10-08-2016, 06:03 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Where your $DISTDIR is pointing to?
 
Old 10-09-2016, 11:31 PM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Portage has the option to store copies of the installed binaries in an arbitrary location, using the buildpkg and quickpkg tools. See the corresponding entries in the Gentoo handbook. This will speed up future re-installs, if stored securely away from the machine.
 
Old 10-11-2016, 09:40 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
If the file are there, can be read, and the sums match, there shouldn't be a problem. So, I guess it's one of these three things that's failing.

I'd start by checking $DISTDIR

Code:
$ emerge --info|grep DISTDIR
If the sums are not ok, I think the merge process should tell you when initiating each ebuild, if my memory serves correctly. Another possibility is that the UIDs of the new portage user is broken, you can check that with ls when chrooted in the new system. A typical ls -l $DISTDIR will output all the files as owned by user portage, group portage, and permissions like rw-rw-r-- for files and rwxrwxr-x for directories. If you see UIDs instead, the problem could be that the UIDs for the portage user and/or group differ from one install to the other.
 
Old 12-05-2016, 03:42 PM   #8
ballsystemlord
Member
 
Registered: Aug 2014
Distribution: Devuan
Posts: 214

Original Poster
Rep: Reputation: Disabled
[SOLVED] do NOT want to re-download packages

/usr/portage/distfiles is a symlink. I did this to myself. By mounting things differently, I solved the issue.
Next time do:
Code:
ls -dl /usr/portage/distfiles
instead of
Code:
ls -dl /usr/portage/distfiles/
Thanks
 
  


Reply



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
Ncurses corrupted on Gentoo, need reinstall Valfather Linux - Software 3 04-10-2007 04:58 PM
rpm packages uninstalled - how to reinstall avijitp Linux - Software 8 01-16-2007 06:55 PM
Gnome do I need to reinstall? Gentoo Tbagz Linux - Newbie 15 02-24-2006 02:58 AM
Gentoo - Resizing the Partitions without reinstall backflippin Linux - Software 2 04-07-2004 12:04 AM
chapter 6..reinstall packages pathogenik Linux From Scratch 3 04-23-2002 04:44 PM

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

All times are GMT -5. The time now is 08:43 PM.

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