View previous topic :: View next topic |
Author |
Message |
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 798 Location: Columbus, OH
|
Posted: Thu Jan 09, 2025 10:16 pm Post subject: Need to reinstall an old version of mongodb |
|
|
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 |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1368 Location: Richmond Hill, Canada
|
Posted: Thu Jan 09, 2025 10:53 pm Post subject: Re: Need to reinstall an old version of mongodb |
|
|
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 |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 798 Location: Columbus, OH
|
Posted: Thu Jan 09, 2025 11:40 pm Post subject: |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22961
|
Posted: Thu Jan 09, 2025 11:57 pm Post subject: |
|
|
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 |
|
|
Akaihiryuu l33t
Joined: 08 May 2003 Posts: 798 Location: Columbus, OH
|
Posted: Thu Jan 09, 2025 11:59 pm Post subject: |
|
|
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 |
|
|
|