Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to install a bin file.

My home dir is /home/user.
The bin file is present at /apps/ba/software.
I need to install this at /apps/ba/ins.

How can I do that?

share|improve this question
    
When you say "install a bin file", do you mean that you have a .deb installation file? Or do you mean that you want to copy the executable file to /apps/ba/ins and add it to your path? Or something else? (This is an unusual request; you are encouraged to use the package manager to install applications. The package manager prevents conflicts, automatically installs dependencies, automatically updates packages, and lets you uninstall very easily.) –  Paddy Landau Dec 9 '12 at 16:17
add comment

2 Answers

Generally, you could add args: --prefix=dir if you compile source code to install your software, but if you install it with the apt-get command you can not specify the install location.

share|improve this answer
add comment

If you are installing from source, try ./configure --prefix=/apps/ba/ins && make && make install If you are installing via apt best way is to create a symlink:

ln -s  /apps/ba/ins /apps/ba/software
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.