Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need to reinstall an old version of mongodb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Thu Jan 09, 2025 10:16 pm    Post subject: Need to reinstall an old version of mongodb Reply with quote

I absolutely have to reinstall an old version of mongodb that is no longer in portage at all. I have the files from /usr/portage/distfiles for 4.4.29. I foolishly let it upgrade to 5.0 without fixing the database first. Now I'm stuck and I absolutely need this old version, my entire wifi network is dead in the water until I can do this.

Is there an overlay I can use for this? Or can I manually use an old ebuild?

The ideal solution for now is to just reinstall 4.4.29 and deal with upgrading things later.
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1368
Location: Richmond Hill, Canada

PostPosted: Thu Jan 09, 2025 10:53 pm    Post subject: Re: Need to reinstall an old version of mongodb Reply with quote

Akaihiryuu wrote:
I absolutely have to reinstall an old version of mongodb that is no longer in portage at all. I have the files from /usr/portage/distfiles for 4.4.29. I foolishly let it upgrade to 5.0 without fixing the database first. Now I'm stuck and I absolutely need this old version, my entire wifi network is dead in the water until I can do this.

Is there an overlay I can use for this? Or can I manually use an old ebuild?

The ideal solution for now is to just reinstall 4.4.29 and deal with upgrading things later.


if your kernel support squashfs.

You can try to download https://distfiles.gentoo.org/snapshots/squashfs/gentoo-20240601.xz.sqfs

Then
Code:
mount -t squashfs gentoo-20240601.xz.sqfs /var/db/repos/gentoo && \
emerge -1ba =dev-db/mongodb-4.4.29 && \
umount /var/db/repos/gentoo


This is one off procedure! Make sure there is no other emerge running.
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Thu Jan 09, 2025 11:40 pm    Post subject: Reply with quote

Ok I've found it's such a massive ordeal to do this that it's easier to just wipe my entire Unifi configuration and start over. As long as I don't use my old database, the server will start. I guess I just have to re-adopt my devices and reconfigure everything.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22961

PostPosted: Thu Jan 09, 2025 11:57 pm    Post subject: Reply with quote

How is it an ordeal to put one ebuild in a local overlay and build it?

Alternately, you could try to reinstall 4.4.29 from a local binary package, assuming you had previously configured Portage to create those as you go (via FEATURES=buildpkg).
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Thu Jan 09, 2025 11:59 pm    Post subject: Reply with quote

Because I've already got it working again from a fresh install, I just had to re-adopt my devices and set it back up. Even if I had gotten the old mongodb working, I would've had to have done a lot of work on the old database to get things up and running again. This was much faster.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum