Linux - Newbie This 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! |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-10-2010, 01:05 PM
|
#1
|
LQ Newbie
Registered: Dec 2009
Location: Cleveland
Posts: 16
Rep:
|
Running Package Upates RH Ver 5
I loaded RH Ver 5 last night and am trying to update all the tons of packages.
1) My understanding was that installed packages would be shown in the /etc/yum file. I took a look at it. The file contains a lot of info but no package info. At the bottom of it it says "Put your repos here or in separate file named file.repo in etc/yum/repos.d In that directory there is only a rhel-dbuginfo.repo file.
-do I need to create a new file name in the latter directory to update all my packages?
-what file are all my packages listed in now?
-do I need to direct my package updates to a directory or file, and how do I do that (what command)
-what is the difference between the repos.d and the yum.conf file?
2) When I do my updates, I want to just use the Update command, but exclude kernel files. Would this be the right syntax?
-update ; -x filename,filename,filename
Thanks so much, know this is long winded. Too much info to sort through in manuals, web, books, etc...
Last edited by Morgandy; 01-10-2010 at 01:07 PM.
|
|
|
01-10-2010, 03:03 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Actually it's quite simple to exclude packages :
Example line in /etc/yum.conf :
exclude=x*
.. and you get no packages starting with x.
exclude=kernel*
.. keeps your current kernel forever ...
.....
.....
The "installed packages list" is kept in a binary file
in /var/...
The list is available with ..
rpm -qa | sort > installed-pkgs.txt
.. which will save a text file in /home/"username"/ .
To know "when", this command is useful :
rpm -qa --last | less
Or : rpm -qa --last > last-rpms.txt
.....
|
|
|
01-10-2010, 03:31 PM
|
#3
|
Member
Registered: Nov 2008
Location: San Francisco, CA
Distribution: Gentoo, CentOS
Posts: 71
Rep:
|
You don't have to edit any files to do updates. Just run "yum update" as root. If you want to exclude the kernel from updates, add "exclude=kernel-*" to the "[main]" section of /etc/yum.conf.
RedHat has two tools that work in tandem to manage your packages. The first is RPM, which is responsible for maintaining the database of installed packages. It allows you to install packages from RPM files and then manage them. It also does conflict detection, dependency management, etc. It is possible to maintain your system entirely with RPM, but you have to acquire the RPM files from somewhere and keep track of what needs updating. The second tool, YUM, takes care of that for you. It manages repositories of packages. It can download and install a package and all of its dependencies for you given only its name, assuming that package exists in one of its repos. It can also check for newer versions of installed packages in the repos and update them as necessary. The average user will perform most of their package management tasks with YUM.
/etc/yum.conf is the configuration file for YUM. Along with various settings, it contains the default repositories. /etc/yum.repos.d allows you to add your own repositories, one per file, without having to mess with the main configuration file.
|
|
|
01-11-2010, 10:30 AM
|
#5
|
LQ Newbie
Registered: Dec 2009
Location: Cleveland
Posts: 16
Original Poster
Rep:
|
Thanks All! When I get time today I will try this again. thx again, I'll let you know my results.
|
|
|
All times are GMT -5. The time now is 02:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|