No doubt that every single Yellow-Dog and Fedora user knows this awesome tool named YUM. In this article we will know what is YUM and how to use it and what are the advantages and disadvantages that exist in YUM. We will also talk a little bit about the yum.conf file. And finally we will get to know some useful links related to YUM. Here we go !. :)
YUM is an interactive, automated update program which can be used for maintaining systems using rpm . Meaning; You can use YUM to install new rpm packages or update exisiting packages. The word YUM stands for "Yellowdog Updater Modified".
YUM uses a configuration file named yum.conf this Configuration File is found in /etc/yum.conf. This yum.conf contains the configuration data needed by YUM . Such as the Debug Level, Cache Directory and finally and the most important are the URL's of the Fedora and YUM repositories which are needed inorder to get the requested packages from them. You can build up a yum.conf file by yourself but first you will need to check the "yum.conf" Manual Page in order to know more details concerning this configuration file
$ man yum.conf
Or you can get a Ready and Updated ''yum.conf''.
In this part we will get to know the basic commands and uses for YUM ... But first we have to configure our "yum.conf" file as stated in the above section and second you have to be using the root account as we will be dealing with rpm's installation and updates or you can switch from your account to the root account by using this command
$ su root
Now , some of the basic and important commands that you should know inorder To be able To use YUM.
# yum install Package1 Package2 Package3 ...
This command is used to install the latest version of a package or a group of packages while making sure that all the dependencies (The extra packages that the installed package needs inorder to work properly) are satisfied.
Here is a screenshot of YUM while it is installing "Kplayer" using this command that we've discussed:
Before you start getting packages from any repository using YUM ... You need To download the Header Files (YUM does this Automaticly). Every rpm has a header, that header contains a complete file list, package descriptions, lists of what features it provides, lists of what it requires, what it conflicts with ... In order for rpm to make a decision about what it will need to be installed, it needs the information in the header ... What Yum does is to copy the header from the repository, then the client part of yum uses those headers to determine what needs to be Installed/Upgraded/Erased.
# yum update Package1 Package2 Package3
This command updates the listed packages which are given as arguments to YUM while ensuring that all dependencies are satisfied ... If this command is ran without an argument list (Packages List) ... It updates every single package installed on your system ... Aint this pretty good ? hehe ... :)
# yum search [...]
This command is used to find any packages matching the argument you gave in the Package Name, Description, Summary. This command is useful if you only know a peice of the package name or somethin' related to it.
# yum remove Package1 Package2 Package3
This command is used to remove the specified packages from your system as well as removing any packages which depend on the package being removed.
Note These are the most important commands of YUM ... For more commands read the Manual page
$ man yum
find -name \*.cc | xargs wc -l):40141 and the size of codebase in YUM (find -name \*.py | xargs wc -l):4681.
hmmm ... Really didn't see any disadvantages ... Then the answer is NONE !
Nuthin's Left ... CYA Later
CVirus
مما لا شك فيه ان كل مستخدمى "fedora" و "yellow-dog" يعلمون هذه الادوات التى يطلق عليها yum و فى هذه القطعة سنعرف ما هو yum و كيفية أستخدامه و ما هى المميزات و العيوب الموجودة فيه. و سنتكلم عن ملف yum.conf"" و أخيرا سنتعرف على بعض الروابط المفيدة والمتعلقة بyum
هو متفاعل و هو من البرامج التى بها التحديث الذاتى و التى يمكنك أستخدامه فى حماية نظام التشغيل لمستخدم rpm. التى تعنى أنك تستطيع أستخدام yum لتحميل حزمة برامج ال rpm الجديدة او تحديث الحزمة الموجودة . فالكلمة yum تعنى "yellow dog updater modified"
يستخدم yum ملف اعداد يسمى "yum.conf" و هذا ملف الاعداد موجود فى /etc/yum.conf . و ملف "yum.conf" يحتوى على بعض بيانات الاعداد التى يحتاجها yum ,مثل مستوى التعديل, debug directory, و اخيرا و أهمها الurl's لfedora و مخزن او مستودع yum الذى نحتاجة للحصول على الحزمة المطلوبة له. يمكنك بناء ملف "yum.conf" بنفسك و لكن أولا ستحتاج للنظر اليدوى فى صفحة "yum.conf" لكى تعرف الكثير من التفصيل بالنسبة الى ملف الاعداد
$ man yum.conf
و يمكنك ان تحصل على yum.confجاهز ومتطور.
فى هذا الجزء سنتعرف على الاوامر الاساسية و أستخدمات yum ..... و لكن أولا يجب اعداد ملف "yum.conf" كما ذكرنا فى الفقرة السابقة . ثانيا يجب استخدام the root account كما انك ستتعامل مع تحميلات rpm و تحديثاتها او يمكنك تشغيل root account بهذا الامر
$ su root
الان, يجب ان تعرف بعض الاوامر الاساسية والمهمة التى تمكنك من استخدام yum
1. تحميل حزمة
# Yum install package1 package2 package3
هذا الامر يستخدم فى تحميل أحدث نسخة من الحزمة او مجموعة من الحزمة مع التأكد ان كل التبعيات (هى الحزمة الاضافية التى تحتاجها الحزمة الموجودة لتعمل بطريقة سليمة) مناسبة. هذه لقطة لyum أثناء تحميل "kplayer" بأستخدام الامر الذى كنا نناقشة
قبل الحصول على أى حزمة من اى مكان باستخدام yum ..... يجب تحميل The headers file (yum يفعل ذلك اتوماتيكى). كل rpm لديهم header ,فالheader يحتوى على قائمة ملفات كاملة, خصائص حزمة, قائمة بالاشياء المطلوبة, ما يتعارض معه...... من أجل ان الrpm تاخذ قرار عن ما تحتاج لتحميله, و تحتاج الملفات فى الheader ..... يقوم yum بنسخ المقدمة من قعدت البيانات و بعد ذلك يقوم عميل yum على الجهاز بتحديد ما سوف يحتاج التحديث, التثبيت, الحذف.
1. تحديث الحزمة
# Yum update package1 package2 package3
هذا الامر يقوم بتحديث الحزمة وهو يستخدم كمحور لyum اثناء التأكد من ان كل التبعيات مناسبة......و اذا عمل هذا الامر من غير قائمة الحزمة....ستقوم بتحديث كل حزمة بمفردها موجودة (متحملة) على نظام التشغيل
2. حذف الحزمة
# yum remove package1 package2 package3
هذا الامر يستخدم لحذف حزمة محددة من نظام التشغيل و حذف اى حزمة يعتمد على الحزمة المحذوفة. ملحوظة هذه هى اهم الاوامر لyum .....لمعرفة اوامر اكثر يجب قراءة بعض الصفحات
$ man yum
find -name \*.cc | xargs wc -l):40141
ومساحة the code base في yum
(find -name \*.py | xargs wc -l):4681
Nothin's Left ... CYA Later
Cvirus
Translated by mildewy