LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 01-10-2010, 01:05 PM   #1
Morgandy
LQ Newbie
 
Registered: Dec 2009
Location: Cleveland
Posts: 16

Rep: Reputation: 0
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.
 
Old 01-10-2010, 03:03 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
.....
 
Old 01-10-2010, 03:31 PM   #3
Elemecca
Member
 
Registered: Nov 2008
Location: San Francisco, CA
Distribution: Gentoo, CentOS
Posts: 71

Rep: Reputation: 22
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.
 
Old 01-10-2010, 07:21 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
You may find this page of examples useful:
http://kbase.redhat.com/faq/docs/DOC-2531
 
Old 01-11-2010, 10:30 AM   #5
Morgandy
LQ Newbie
 
Registered: Dec 2009
Location: Cleveland
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks All! When I get time today I will try this again. thx again, I'll let you know my results.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kaffeine ver 0.7 error running MMS streaming input plugin suse2166 Linux - Newbie 0 03-22-2006 09:13 PM
Upgrading Samba from ver-3.0.4 to current ver-3.0.21b delamatrix SUSE / openSUSE 3 02-20-2006 11:56 AM
how do I know which ver of mysql i'm running? kfiralfia Linux - Software 1 04-01-2004 10:14 PM
Ver 2 Compiler With Ver 3. Kernel wat to do? cam34 Linux - Software 3 08-31-2003 07:15 PM
installing a Linksys WPC 11 ver 3 in a IBM thinkpad A30 running Redhat 9 sakarsteve Linux - Networking 0 08-29-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration