Find installation path in linux [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 7 years ago.
Improve this question
When doing
apt-get install <service-name>
or
yum install <service-name>
services are automatically installed. How to find exact path where any service is installed and their configuration files??

There are quite a few ways to find this but I usually prefer following
whereis <service-name>
e.g whereis java
and to find from which path program is using, I use
which <service-name>
e.g which java

If you're using apt-get, install apt-file program and you can list the contents of the package:
sudo apt-file update
apt-file list package_name
This will show all the files that will be installed by a package, binaries, configuration files, systemd startup files, etc.
If you use yum, install yum-utils and use repoquery:
repoquery -l package_name

Suppose service name is nginx then you can find it in /etc/nginx/ on ubuntu.

Related

How can I reinstall apt? [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 1 year ago.
Improve this question
Hi!
I deleted by mistake, the command apt and apt-get...
My OS: Ubuntu 16.04 TLS
Error:
-bash: /usr/bin/apt: No such file or directory
-bash: /usr/bin/apt-get: No such file or directory
How can I reinstall APT command?
check out the packages.ubuntu.com page and look for the apt package, there you can download the binary .deb file depending on your processor architecture...
But consider that, the deb files have some dependencies... you have to install them too, for listing the package dependencies, use the dpkg, eg:
dpkg -I apt-armhf-blahblah.deb
if you deleted the apt package by itself, take a look at its log file in /var/log/apt/history.log, you can discover the name of packages that you removed.
HINT 1: since the DPKG can't automatically install the dependencies, you have to install them one by one!
HINT 2: that's recommended to remove your current OS and install the latest version because this version will not receive any maintenance update anymore.

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

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>

I can't install libopenblas via yum on Centos 7 [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 5 years ago.
Improve this question
Hello Stackoverflow user,
I want to compile NWChem program on CentOS 7 and it requires an OpenBlas library. I have tried to install the OpenBlas via yum installer using command: yum -y install libopenblas or yum -y install libopenblas-devel.
Unluckily, it did not work and the error message is like there is no the openblas library in the repository.
Can anyone suggest me how to fix this issue?
Thanks a lot.
I am not 100% sure, but the correct package name should be openblas-devel.x86_64. Try the command yum install openblas-devel.x86_64 -y.

Centos kernel-devel not available after install [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 7 years ago.
Improve this question
I am bit confuse that after vagrant-vbguest plugin install kernel-devel-2.6.32-573.el6.x86_64 on my centos guest machine
Why I am not able to search for the same package using
yum search kernel-devel-2.6.32-573.el6.x86_64
But when I do yum install kernel-devel-2.6.32-573.el6.x86_64 I got package is already installed
Any help will be appreciated. Thanks
yum search searches for the specified string in a package's name, summary, description and url fields.
Your full RPM package name doesn't appear in any of those fields.
If you wanted to check for a package by name specifically like that then, depending on where you wanted to search, you would either want yum info, yum list, repoquery or rpm -q.
yum info, yum list query the configured (and enabled) repositories as well as the installed packages
repoquery queries the configured (and enabled) repositories only
rpm -q queries the installed packages only
You do not need the complete kernel version when searching for a package (yum search kernel-devel).
If you need more information attributes including the package version you can:
run yum info kernel-devel
run yum list kernel-devel-2.6.32-573.el6.x86_64
note: if you still want to get all versions available in the repos you can run yum list --showduplicates kernel-devel

Resources