LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   yum update yum? (https://www.linuxquestions.org/questions/linux-software-2/yum-update-yum-355782/)

TranceDude 08-22-2005 08:23 AM

yum update yum?
 
hi

i want to update yum but is it a good idea to use yum for updating itself?
I'm a beginner and i need some advice about that

I'm also looking about a command that gives me all the available packages in a repository that i added to yum

thx

hob 08-22-2005 02:19 PM

You can use yum to update itself - that's absolutely fine.

By default 'yum list' shows you all the packages from all the enabled repositories, but you can disable a repository for a single operation with "--disablerepo=repository"

So this command shows all the available packages that *aren't* from Core, Updates or Extras:

su -c 'yum --disablerepo=base --disablerepo=updates-released --disablerepo=extras list'

Most repositories have hundreds or thousands of packages so add a grep on the end to only show what you're interested in:

su -c 'yum --disablerepo=base --disablerepo=updates-released --disablerepo=extras list' | grep -i 'what-i-want'

Yum has other search facilities, which are briefly covered in the Fedora documentation:

http://fedora.redhat.com/docs/yum/

I tend to go to the Website of the repository when I want to just casually browse the packages.

reddazz 08-22-2005 02:26 PM

If you run "yum update" or "yum upgrade" without any other parameters all packages on your system including yum will be upgraded so there really is no need to upgrade yum on its own unless you are upgrading Fedora or CentOS versions.

TranceDude 08-23-2005 09:56 AM

thanks a lot


All times are GMT -5. The time now is 04:12 AM.