aboutsummaryrefslogtreecommitdiff
path: root/build/mongodb-arch/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'build/mongodb-arch/index.html')
-rw-r--r--build/mongodb-arch/index.html55
1 files changed, 36 insertions, 19 deletions
diff --git a/build/mongodb-arch/index.html b/build/mongodb-arch/index.html
index 2b4bff8..162a5a8 100644
--- a/build/mongodb-arch/index.html
+++ b/build/mongodb-arch/index.html
@@ -1,43 +1,60 @@
<!doctype html>
-<html lang="en" id="top">
+<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Installing Older Versions of MongoDB on Arch Linux</title>
- <link href="https://bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
- <style>*{box-sizing:border-box;}body{font-family:sans-serif;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{overflow:auto;}table{text-align:left;width:100%;}</style>
+ <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
+ <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" />
+<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
</head>
<nav>
- <a href="#menu">Menu &darr;</a>
+ <a href="#menu">Menu &darr;</a>
</nav>
<main>
-<h1>Installing Older Versions of MongoDB on Arch Linux</h1>
+<h1 id="installing-older-versions-of-mongodb-on-arch-linux">Installing Older Versions of MongoDB on Arch Linux</h1>
+
<p>2023-09-11</p>
-<p>I've recently been using Arch Linux for my main work environment on my ThinkPad X260. It's been great. As someone who is constantly drawn to minimalist operating systems such as Alpine or OpenBSD, it's nice to use something like Arch that boasts that same minimalist approach but with greater documentation/support.</p>
-<p>Another major reason for the switch was the need to run older versions of "services" locally. Most people would simply suggest using Docker or vmm, but I personally run projects in self-contained, personalized directories on my system itself. I am aware of the irony in that statement... but that's just my personal preference.</p>
+
+<p>I&#8217;ve recently been using Arch Linux for my main work environment on my ThinkPad X260. It&#8217;s been great. As someone who is constantly drawn to minimalist operating systems such as Alpine or OpenBSD, it&#8217;s nice to use something like Arch that boasts that same minimalist approach but with greater documentation&#47;support.</p>
+
+<p>Another major reason for the switch was the need to run older versions of &#8220;services&#8221; locally. Most people would simply suggest using Docker or vmm, but I personally run projects in self-contained, personalized directories on my system itself. I am aware of the irony in that statement&#8230; but that&#8217;s just my personal preference.</p>
+
<p>So I thought I would share my process of setting up an older version of MongoDB (3.4 to be precise) on Arch Linux.</p>
-<h2>AUR to the Rescue</h2>
+
+<h2 id="aur-to-the-rescue">AUR to the Rescue</h2>
+
<p>You will need to target the specific version of MongoDB using the very awesome AUR packages:</p>
+
<pre><code>yay -S mongodb34-bin
</code></pre>
-<p>Follow the instructions and you'll be good to go. Don't forget to create the <code>/data/db</code> directory and give it proper permissions:</p>
-<pre><code>mkdir -p /data/db/
-chmod -R 777 /date/db
+
+<p>Follow the instructions and you&#8217;ll be good to go. Don&#8217;t forget to create the <code>&#47;data&#47;db</code> directory and give it proper permissions:</p>
+
+<pre><code>mkdir -p &#47;data&#47;db&#47;
+chmod -R 777 &#47;date&#47;db
</code></pre>
-<h2>What About My "Tools"?</h2>
-<p>If you plan to use MongoDB, then you most likely want to utilize the core database tools (restore, dump, etc). The problem is you can't use the default <code>mongodb-tools</code> package when trying to work with older versions of MongoDB itself. The package will complain about conflicts and ask you to override your existing version. This is <em>not</em> what we want.</p>
-<p>So, you'll have to build from source locally:</p>
-<pre><code>git clone https://github.com/mongodb/mongo-tools
+
+<h2 id="what-about-my-tools">What About My &#8220;Tools&#8221;?</h2>
+
+<p>If you plan to use MongoDB, then you most likely want to utilize the core database tools (restore, dump, etc). The problem is you can&#8217;t use the default <code>mongodb-tools</code> package when trying to work with older versions of MongoDB itself. The package will complain about conflicts and ask you to override your existing version. This is <em>not</em> what we want.</p>
+
+<p>So, you&#8217;ll have to build from source locally:</p>
+
+<pre><code>git clone https:&#47;&#47;github.com&#47;mongodb&#47;mongo-tools
cd mongodb-tools
-./make build
+.&#47;make build
</code></pre>
-<p>Then you'll need to copy the built executables into the proper directory in order to use them from the terminal:</p>
-<pre><code>cp bin/* /usr/local/bin/
+
+<p>Then you&#8217;ll need to copy the built executables into the proper directory in order to use them from the terminal:</p>
+
+<pre><code>cp bin&#47;* &#47;usr&#47;local&#47;bin&#47;
</code></pre>
-<p>And that's it! Now you can run <code>mongod</code> directly or use <code>systemctl</code> to enable it by default. Hopefully this helps anyone else curious about running older (or even outdated!) versions of MongoDB.</p>
+
+<p>And that&#8217;s it! Now you can run <code>mongod</code> directly or use <code>systemctl</code> to enable it by default. Hopefully this helps anyone else curious about running older (or even outdated!) versions of MongoDB.</p>
<footer role="contentinfo">
<h2>Menu Navigation</h2>
<ul id="menu">