Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
It's nothing serious. It just means that the yum database has gotten out of sync with the rpm database because you used rpm directly to install/remove/update a package, and as a result the various "yum history ..." commands won't show everything that has happened with your installed packages. It's a one-time message. If you manage your packages using yum exclusively, you won't see it again.
Yes we did a rpm -ivh and what is difference between rpm -uvh? Which is safer to use? The problem some software are not found via yum.
"rpm -u" will install a new package or upgrade an existing one, removing all other versions of the package after the new one is installed. "rpm -i" just installs without removing other versions, and is used instead of "-u" for things like kernels, where you want to keep multiple versions installed.
yum is quite happy to install an RPM file that you have locally. Just run
yum install /path/to/some_file.rpm
yum update /path/to/some_file.rpm
With older versions of yum you might have to use "localinstall" or "localupdate" instead of "install" or "update".
What is the major difference installing it with rpm -ivh and via yum install /path/to/some_file.rpm?
Doing it via yum will allow the yum and rpm databases to stay in sync, the yum history will show who did the install and how, and that the package came from a local file. You might not think any of that is very important now, but a year from now being able to look back and see that, "Package A was installed from a local file and that packages C and D installed at that same time were brought in as dependencies from repo X," can be quite valuable.
So the right way to install is yum can I say that. But this I am quite lost "Package A was installed from a local file and that packages C and D installed at that same time were brought in as dependencies from repo X,". What risk factor can it cause? Like now I know I got one is the centos repo and another is the epel repo?