Skip to content

Instantly share code, notes, and snippets.

@prahladtimalsina
Last active June 11, 2023 16:34
Show Gist options
  • Save prahladtimalsina/e38c840118b25265a29495af4bccef19 to your computer and use it in GitHub Desktop.
Save prahladtimalsina/e38c840118b25265a29495af4bccef19 to your computer and use it in GitHub Desktop.
Mongo Db installation in Artix linux

it's just the same with Manajro or Arch Linux. Some GUI package managers would be also available, alternatively. Reference

The official documentation by Arch Linux (https://archlinux.org)

==Mongo Db installation in Artix linux

MongoDB has been removed from the official repositories (Arch Linux) due to its re-licensing issues.

PKGBUILDs are provided in AUR: {mongodb-bin}^aur

[prahlad@artix ~]$ git clone https://aur.archlinux.org/mongodb-bin.git
[prahlad@artix ~]$ cd mongodb-bin
[prahlad@artix ~]$ makepkg -si
sudo rm /var/lib/mongodb/mongod.lock
sudo mongod --dbpath /var/lib/mongodb/ --repair
sudo mongod --dbpath /var/lib/mongodb/ --journal

(Make sure that you leave you terminal running in which you have run above lines, dont press 'Ctrl+c' or quit it.) Type the command to start mongo now in another window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment