Linux Users can access git client after install... [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I installed git using the following steps
wget https://www.kernel.org/pub/software/scm/git/git-1.8.2.3.tar.gz
tar xzvf git-1.8.2.3.tar.gz
cd git-1.8.2.3
make prefix=/usr/local all
sudo make prefix=/usr/local install
After doing the above I tye in
git --version
and I get the following error
-bash: git: command not found
but it works if I sudo su and then try?

You probably don't have /usr/local/bin in you PATH environment variable. Try:
PATH=$PATH:/usr/local/bin git --version
If that works you can add it permanently by editing yoou .profile or .bash_profile and adding:
export PATH=$PATH:/usr/local/bin

Related

How to install dpkg file on debian linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am new to Linux and I want to install .Deb software package in Linux. Let say I want to install chromex64.deb, how to install it? can anyone explain it?
You could try running dpkg -i chromex64.deb
If an error occurs saying that some dependencies are missing, install them using apt-get install
You can install by using dpkg -i command.
Navigate to download directory and open the terminal.
Run the following code:
sudo dpkg -i *.deb
If there is more deb file, specify the file name in place of *
If you find missing dependencies, you can try
sudo apt-get update --fix-missing

How to update docker-machine on Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I installed docker-machine on my Ubuntu 18.04 with the instruction provided here: https://docs.docker.com/v17.12/machine/install-machine/#install-machine-directly. Now how do I update it to a more recent version?
As I found out, it is enough to just rerun the commands for installation with changed version in the link
For example, this command installs version 0.14.0:
curl -L https://github.com/docker/machine/releases/download/v0.14.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && \
sudo install /tmp/docker-machine /usr/local/bin/docker-machine
If you want to update it to 0.16.0, you just run:
curl -L https://github.com/docker/machine/releases/download/v0.16.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && \
sudo install /tmp/docker-machine /usr/local/bin/docker-machine

Trying to download and install with apt-get with specified directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I am trying to do sudo apt-get --download-only <package_name> ??target_directory?? but i want to specify the download location so that, in future i want to install my pre-downloaded package without internet connection with sudo apt-get --no-download <package_name> ??target_directory??. The problem here is, I want to choose the target directories as '/user/desktop/blabla' but don't know how to specify it with apt-get.
If you can help me, I will be grateful :)
Have a nice day.
You can specify the download directory by using the -o option:
apt-get install -d -o=dir::cache=/user/desktop/blabla <package-name>

Install RPM package from Artifactory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I am trying to install rpm package in linux, and the package is stored in artifactory.
command I used:
rpm -ihv --nodeps --force https:/artifactory.com/myrpm.rpm
I got 'transfer failed' error message, and this is expected because the artifactory website requires authentication. (username/password).
Found one thing that there is a command 'curl'. How to utilize this command if this is the right solution?
You can try passing username and password in the URL as per this answer:
$ rpm -ihv --nodeps --force https://<username>:<password>#artifactory.com/myrpm.rpm
The steps to do it with curl would be as per this answer:
$ curl -u <username>:<password> https://artifactory.com/myrpm.rpm
$ rpm -ihv --nodeps ./myrpm.rpm

bash: Automatically install package if not installed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Let's say I thought I had SVN installed. I run the command and I get the following output:
aoneill#aoneill-Laptop:~/Documents$ svn
The program 'svn' is currently not installed. You can install it by typing:
sudo apt-get install subversion
My question is: Can I change the output, or catch such a situation, to say something like the following, with a prompt at the end?
aoneill#aoneill-Laptop:~/Documents$ svn
The program 'svn' is currently not installed. You can install it by typing:
sudo apt-get install subversion
Install the package? [y/n]
Thank you! It would make package handling that much nicer!
Exactly what you are looking for:
export COMMAND_NOT_FOUND_INSTALL_PROMPT=1

Resources