Results 1 to 8 of 8

Thread: Installing Mondodb

  1. #1

    Default Installing Mondodb

    Hi,

    I am trying to install and learn mongodb. Did some search on the forum:

    1) https://forums.opensuse.org/showthread.php/521666-Mongodb-installation?highlight=mongodb
    2) https://forums.opensuse.org/showthread.php/521402-Mongodb?highlight=mongodb

    I don't need to have the latest but just need to have something to get moving; I went to:

    https://software.opensuse.org/package/mongodb


    Opensuse 42.3 Leap -> "1 Click Install" but it shows the following:

    Code:
    <metapackage xmlns:os="http://opensuse.org/Standards/One_Click_Install" xmlns="http://opensuse.org/Standards/One_Click_Install">
      <group>
        <repositories>
          <repository recommended="true">
            <name>openSUSE:Leap:42.3:Update</name>
            <summary>Online updates for openSUSE Leap:42.3</summary>
            <description>This project is releasing the official updates for openSUSE Leap:42.3.</description>
            <url>http://download.opensuse.org/update/leap/42.3/oss/</url>
          </repository>
          <repository recommended="false">
            <name>openSUSE:Leap:42.3</name>
            <summary>openSUSE Leap 42.3</summary>
            <description></description>
            <url>http://download.opensuse.org/distribution/leap/42.3/repo/oss/</url>
          </repository>
        </repositories>
        <software>
          <item>
            <name>mongodb</name>
            <summary>The MongoDB document-oriented database system (metapackage)</summary>
            <description>MongoDB is a document-oriented database program. Classified as a
    NoSQL database program, MongoDB uses JSON-like documents with
    schemas. It has auto-sharding, built-in replication, TTL indexes,
    text search as well as an aggregation framework and native MapReduce.
    
    This metapackage will install the mongo shell, import/export tools,
    other client utilities, server software, default configuration, and
    init.d scripts.</description>
          </item>
        </software>
      </group>
    </metapackage>
    I probably am doing something not right. Alternatively, if I use zypper, how should I go about it?

    Thank you.

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,283
    Blog Entries
    2

    Default Re: Installing Mondodb

    Quote Originally Posted by by79 View Post
    Hi,

    I am trying to install and learn mongodb. Did some search on the forum:

    1) https://forums.opensuse.org/showthread.php/521666-Mongodb-installation?highlight=mongodb
    2) https://forums.opensuse.org/showthread.php/521402-Mongodb?highlight=mongodb

    I don't need to have the latest but just need to have something to get moving; I went to:

    https://software.opensuse.org/package/mongodb


    Opensuse 42.3 Leap -> "1 Click Install" but it shows the following:

    Code:
    <metapackage xmlns:os="http://opensuse.org/Standards/One_Click_Install" xmlns="http://opensuse.org/Standards/One_Click_Install">
      <group>
        <repositories>
          <repository recommended="true">
            <name>openSUSE:Leap:42.3:Update</name>
            <summary>Online updates for openSUSE Leap:42.3</summary>
            <description>This project is releasing the official updates for openSUSE Leap:42.3.</description>
            <url>http://download.opensuse.org/update/leap/42.3/oss/</url>
          </repository>
          <repository recommended="false">
            <name>openSUSE:Leap:42.3</name>
            <summary>openSUSE Leap 42.3</summary>
            <description></description>
            <url>http://download.opensuse.org/distribution/leap/42.3/repo/oss/</url>
          </repository>
        </repositories>
        <software>
          <item>
            <name>mongodb</name>
            <summary>The MongoDB document-oriented database system (metapackage)</summary>
            <description>MongoDB is a document-oriented database program. Classified as a
    NoSQL database program, MongoDB uses JSON-like documents with
    schemas. It has auto-sharding, built-in replication, TTL indexes,
    text search as well as an aggregation framework and native MapReduce.
    
    This metapackage will install the mongo shell, import/export tools,
    other client utilities, server software, default configuration, and
    init.d scripts.</description>
          </item>
        </software>
      </group>
    </metapackage>
    I probably am doing something not right. Alternatively, if I use zypper, how should I go about it?

    Thank you.
    You're using a web browser that isn't set up to recognize how to handle the one-click install MIME type.
    Out of curiousity, which web browser are you using and where did you get it from?
    In any case, a safe choice is to use the Firefox that's likely installed by default as part of your original install.

    But, you probably don't have to install from the website.

    You can also open up YaST > Software Manager, search for mongodb and install it.

    Or,
    You can simply open up an elevated console, verify mariadb exists in your existing repositories
    Code:
    zypper search mongodb
    and install it
    Code:
    zypper install mongodb
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: Installing Mondodb

    Thanks Tsu2,

    I am using Chrome. Now I switched to Firefox, and while installing, it gives out an error.
    "An error occurred while initializing the software repository.
    Details:
    http-download.opensuse.org-5f251495:[http-download.opensuse.org-5f251495|http://download.opensuse.org/reposit.../Ports/ports/] Valid metadata not found at specified URL
    History:
    - [http-download.opensuse.org-5f251495|http://download.opensuse.org/reposit.../Ports/ports/] Repository type can't be determined.

    Try again?

    by the way,

    test:~> zypper install mongodb
    Root privileges are required for installing or uninstalling packages.

    I should use sudo?

    Sorry for this question
    Last edited by by79; 29-Oct-2018 at 03:10. Reason: add more questions to the same rreply

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,143

    Default Re: Installing Mondodb

    Quote Originally Posted by by79 View Post
    I should use sudo?
    As installing software in system places naturally requires "being root", yes, you should run zypper as root. You can do that in the way you prefer, thus when that is using sudo, use it.
    Henk van Velden

  5. #5

    Default Re: Installing Mondodb

    Thanks Henk,

    So I use sudo and use Tsu2's command...it looks to be working...but I haven't tried the actual mongo commands yet.

    Continue? [y/n/...? shows all options] (y): y
    Retrieving package mongodb-mongoperf-3.4.10-3.1.x86_64
    (1/5), 12.9 MiB ( 43.4 MiB unpacked)
    Retrieving: mongodb-mongoperf-3.4.10-3.1.x86_64.rpm ..........[done (2.0 MiB/s)]
    Retrieving package mongodb-mongos-3.4.10-3.1.x86_64
    (2/5), 7.4 MiB ( 24.5 MiB unpacked)
    Retrieving: mongodb-mongos-3.4.10-3.1.x86_64.rpm .............[done (2.3 MiB/s)]
    Retrieving package mongodb-server-3.4.10-3.1.x86_64
    (3/5), 13.0 MiB ( 44.0 MiB unpacked)
    Retrieving: mongodb-server-3.4.10-3.1.x86_64.rpm .............[done (2.3 MiB/s)]
    Retrieving package mongodb-shell-3.4.10-3.1.x86_64
    (4/5), 7.1 MiB ( 23.4 MiB unpacked)
    Retrieving: mongodb-shell-3.4.10-3.1.x86_64.rpm ..............[done (2.0 MiB/s)]
    Retrieving package mongodb-3.4.10-3.1.x86_64
    (5/5), 23.7 KiB ( 0 B unpacked)
    Retrieving: mongodb-3.4.10-3.1.x86_64.rpm ................................[done]
    Checking for file conflicts: .............................................[done]
    (1/5) Installing: mongodb-mongoperf-3.4.10-3.1.x86_64 ....................[done]
    (2/5) Installing: mongodb-mongos-3.4.10-3.1.x86_64 .......................[done]
    (3/5) Installing: mongodb-server-3.4.10-3.1.x86_64 .......................[done]
    (4/5) Installing: mongodb-shell-3.4.10-3.1.x86_64 ........................[done]
    (5/5) Installing: mongodb-3.4.10-3.1.x86_64 ..............................[done]

    But for my knowledge, is there any easy way to explain how zypper is different from YAST or the "1-click" install" as the latter 2 doesn't seem to work for me...?

    Thanks in advance.

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,283
    Blog Entries
    2

    Default Re: Installing Mondodb

    Quote Originally Posted by by79 View Post
    Thanks Tsu2,

    I am using Chrome. Now I switched to Firefox, and while installing, it gives out an error.

    by the way,

    I should use sudo?

    Sorry for this question
    I just checked using Firefox.
    If your Firefox comes from the openSUSE repos, the one-click install should work (my test works).
    When you're using a supported web browser, the browser will know to give you the option of launching a special YaST installer module that knows how to read that metadata.

    And yes, when I described using an "elevated console," by that I mean that you need either sudo or root permissions, "elevated" permissions higher than your ordinary User account.

    Elevated permissions are necessary any time you install an application from a repository, Package management is considered a "System Management" type of role, and you wouldn't want just anyone including hackers to have access to this capability.

    Zypper and Yast Software Manager work the same way, both are frontends to the actual functionality provided by libzypp which executes the package management functionality.

    After installing a database application, typically you'll need to start the application to be able to sue it, with the following command
    Code:
    systemctl start mongodb
    and if you want the app to start up automatically on every boot
    Code:
    systemctl enable mongodb
    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,143

    Default Re: Installing Mondodb

    And please, next time use CODE tags (the # button) instead of QUOTE tags around computer text. Also, whenever applicable, include the prompt and command line before the output and to show that you did not left out any output, it is better to also include the next prompt. Only two lines more to copy/paste for you and a wealth of information for your helpers.

    And a comment to @TSU's explanation. IMHO the term "elevated permissions" is rather academic and applicable to many types of operating system. In Unix/Linux, a process needs to be owned by userid=0 (that has the user name "root") instead of be owned by any other "normal" user. There are several methods to run a process with owner root (but they all come down to the usage of the SETUID permission bit of the executable to be started) and one of them is to use the sudo program. Thus it is not "either sudo or root permissions", but rather "root permissions by e.g. using sudo".

    See also: https://en.opensuse.org/SDB%3ALogin_as_root
    Henk van Velden

  8. #8

    Default Re: Installing Mondodb

    Noted your comments and assistance. Thank you both!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •