Install Jenkins on RedHat to specific location - linux

I need to install Jenkins on RedHat Enterprise Linux Server 64 to a specific location /opt/user/buildserver. I am pretty sure that when I do it with yum as described in http://pkg.jenkins-ci.org/redhat/ it will be installed somewhere else. Has anybody had similar problem and sorted it out somehow?

Related

wget command not found on linux server

I have a linux server (completely new, web hosting, nothing is installed into it), and want to use a "wget" command. Currently, it is not found. Kernel version 2.6.32-896.16.1.lve1.4.54.el6.x86_64
I am completely new to linux, tried to solve this issue by myself, but couldn't do it. I log in into this linux server via PuTTY via my Windows OS laptop.
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
To get "wget" to work, I will need to install it. I guess I will need to install first "sudo" and/or "apt" and/or "apt-get". But couldn't do it. Please give me a short list of steps in which order to install them.
Given your kernel version, it looks like your Linux distribution is CentOS 6 or RHEL 6. Try installing wget with this command:
yum install wget
You must be root when you run this command.
Incase you using Debian version of Linux, use the following:
sudo apt-get install wget
From kernel version, it looks like you are using RHEL/Centos 6.
Please check -
https://centos.pkgs.org/6/centos-x86_64/wget-1.12-10.el6.x86_64.rpm.html
If the mentioned dependencies exist in your system, you can directly fire the rpm command
rpm command guide -
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html
If it doesn't work, you need to use yum command. (You need to configure yum command first, if not configured already)
yum install wget
To configure yum command in centos6 -
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-configuring_yum_and_yum_repositories
Note - you need to be root user for above activities.

How to install Octave on rhel fedora based Amazon EC2 instance?

How to install Octave on Amazon EC2 instance? The configuration of the EC2 instance is as follows:
First, I created a tmp directory and downloaded the EPEL rpm in the tmp directory and installed the EPEL repository with the commands:
I tried to use the following command (please see the following website for more details about this command link for more details of the command) to install Octave, but it was not working (see the following result):
Also, I tried to enable the package by changing "enabled = 0" to "enabled = 1" in the file "/etc/yum.repos.d", and used yum to install octave, but it was still not working. The error message is as follows:
I tried to use the command to test it (see below for more details):
I am not sure if some package management tools (e.g., subscription-manager, dnf) to handle the dependency issues. Thanks!
Amazon Linux is based on RHEL and Fedora, but is not RHEL or Fedora. Fedora EPEL is made on RHEL and will also work on CentOS and other rebuilds which aim to be just like RHEL. It looks like you are hitting an area where Amazon Linux is different. Your options are:
Rebuild all of those missing packages on Amazon Linux
Install Octave and all dependencies from source rather than RPM
Use RHEL, Fedora, or CentOS

Install MongoDB without YUM on Linux RHEL 6.7

I have have a Linux machine that I am trying to install MongoDB on. Unfortunately for me my work limits external access from where this machine is located at. I have tried to follow MongoDb's documentation on how to install via setting up YUM repo, but due to my machine having limited external access I can't install the way the documentation suggest since I cant reach the following site.
this is where to point mongodb yum repo.
https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/3.4/$basearch/
I wanted to know if anyone knows another way of possibly installing MongoDB? I have other machines that I could possibly use to download RPM's if they exist.
Also I should mention I am running the following OS
cat /etc/*release
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)
I should have waited a little longer before posting this question but I basically found in the documentation on how to install via tar ball. The steps are found here: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-linux/

Install Marklogic centos virtualbox vm

I recently set up a CentOS 6.4 basic LAMP server (no GUI) in a pre-built Virtualbox image, and then followed the installation guide/steps for MarkLogic.
When I attempt install with rpm -i /tmp/MarkLogic-8.0-1.x86_64.rpm, MarkLogic states that it cannot find libc.so.6, however when I run the command whereis libc.so.6, the shell responds with /lib64/libc.so.6
I would make a symbolic link I suppose, but I'm not sure where MarkLogic is expecting that file to be.
Does anyone have experience installing MarkLogic on Centos6 and how to verify the install is working properly? While ML gave some good instructions, I am very new to CentOS and Redhat, in general.
Running the following yum command before installing MarkLogic should be sufficient normally:
yum -y install glibc.i686 gdb.x86_64 redhat-lsb.x86_64
You can also look at this and related scripts for more inspiration:
https://github.com/grtjn/mlvagrant/blob/master/opt/mlvagrant/install-ml-centos.sh#L17
HTH!

Linux: Console apt-get not available?

I need to install Java, Solr, and update Git on this dedicated server.
I have ssh root access and was going to use the apt-get method to install what I need. But says this command is not found. Is this not a core Linux thing? I am guess I need to now look into installing this before doing anything else?
I don't have CPanel access.
This is solved. I did not know there was a different package manager with CentOS and Ubuntu. I used yum and it worked. I will mark this answered once I am able.

Resources