Opensuse 42.3 Leap -> “1 Click Install” but it shows the following:
<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?
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
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.
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…?
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
systemctl start mongodb
and if you want the app to start up automatically on every boot
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”.