How to fix when deleted folder /var/lib/* in CentOS 6 [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How to fix when deleted folder /var/lib/* on CentOS 6?
rpm -q centos-release yum rpm python
package centos-release is not installed
package yum is not installed
package rpm is not installed
package python is not installed

Reinstall Centos 6, and then stop deleting important directories

Related

How to install yum in Red Hat 3.4.6-3 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to use the yum command in Red Hat 3.4.6-3. How can I install it?
Download the yum version of your choice: wget http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.7.tar.gz
Untar the package: tar xvzf yum-2.0.7.tar.gz
change directory into the newly expanded folder: cd yum-2.0.7
run the configuration file: ./configure
make configuration: make
make installation: make install
download yum-2.4.2-0.4.el4.rf.noarch.rpm and install using rpm -ivh yum-2.4.2-0.4.el4.rf.noarch.rpm

Cannot --enable-pcregrep-libbz2 because bzlib.h was not found [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to install pcre 8.32.
When I tried to install following this tutorial I get this error:
**Cannot --enable-pcregrep-libbz2 because bzlib.h was not found**.
Then I tried: sudo yum install libbz2-dev and now it is saying No package libbz2-dev available.Error: Nothing to do
I am totally confused. What shold I do next?
Try to locate the package that provides the bzlib.h file with:
sudo yum whatprovides */bzlib.h
And then install that package
From your comment the package name is bzip2-devel-1.0.6-3.fc15.i686, so do:
sudo yum install bzip2-devel-1.0.6-3.fc15.i686

Verify Linux software packages before installing RPM [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have an RPM file that need to be installed, before installing I want to check the version of packages contained within it. If the package is already installed I can use rpm -qi to know the version number, but what option do I use to find out the version if the package is not installed?
The -p option can be used to direct a query at an uninstalled package.
rpm -qip package.rpm

How to install packages from command line on Suse [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
What is the Suse version of apt-get or yum?
How do I install software packages from the command line?
A fairly intense session of googling suggests that it may be yast or yast2, but no sensible HOWTO of listing and installing packages from the command line seems to exist. (maybe I am looking in the wrong place)
If I am an administrator for a remote Suse server, how do I install packages from the command line? (Not using a GUI and preferably installing from a central repo)
zypper
Found a tutorial for you
And official documentation

Installation of Apache on CentOS [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How to install Apache on a CentOS 7?
1) login as root or use sudo
2) yum install -y httpd or sudo yum install -y httpd
3)all config files are locates in /etc/httpd/conf and /etc/httpd/conf.d
4)all your html files can be found in /var/www/html
5) Start learning the basic at http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-httpd.html
6) grab a cup of coffee, tea or whatever you like most.
Or just edit your /etc/httpd/conf/httpd.conf near the bottom and voila you have a new vhost!

Resources