How to setup and use YUM on Fedora Linux Kā to uzstādīšanas un lietošanas YUM uz Fedora Linux

by Sukrit Dhandhania on May 19, 2009 ar Sukrit Dhandhania 2009 May 19,

Linux

YUM is a very cool software installation and management tool for Red Hat Linux based systems. YUM ir ļoti foršs programmatūras uzstādīšana un pārvaldības rīks Red Hat Linux balstītām sistēmām. It makes installing new packages or updating existing ones a breeze by taking care of installing all the dependancies. Tas padara ierīkojot jaunu iepakojumu vai atjaunināt esošo brīze, ņemot aprūpes ierīkošanas visu dependancies. Let's look at how to set it up on a Fedora Linux machine and then how to use it. Apskatīsim, kā noteikt tai līdzi Fedora Linux mašīnu un tad kā to izmantot.

If you don't have YUM installed on your Linux machine then get it from project's home page Ja jums nav YUM instalēta jūsu Linux mašīna pēc tam saņemt no projekta mājas lapas http://linux.duke.edu/projects/yum/download.ptml http://linux.duke.edu/projects/yum/download.ptml . . After downloading the latest release of YUM for your version of Fedora Linux install it. Pēc lejupielādēt jaunāko versiju no YUM jūsu versijas Fedora Linux instalēt.

# rpm -ivh yum-2.0.3-0.fdr.1.rh90.noarch.rpm # Rpm-plain Yum-2.0.3-0.fdr.1.rh90.noarch.rpm

Once installed correctly you should be able to access YUM from using the command yum . Kad ierīce ir pareizi uzstādīta jums ir jābūt iespējai piekļūt YUM izmantot komandu Yum. Lets configure YUM before we begin using it. Lets konfigurēt YUM pirms mēs sākam to lietot. The configuration basically consists of adding a number of RPM repositories so that YUM can fetch the RPM packages and dependent packages required. Konfigurācijas pamatā sastāv pievienot vairākas RPM krātuves, lai YUM var ielādēt RPM pakotņu un apgādībā iepakojumi nepieciešams. Open the /etc/yum.conf file in a text editor and add the following lines at the end of the file: Atvērts / etc / yum.conf failu teksta redaktorā un pievieno šādas rindas beigās failu:

[base] [bāzes]
name=Fedora Core $releasever – $basearch – Base name = Fedora Core $ releasever - $ basearch - Base
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag baseurl = http://apt.sw.be/fedora/ $ releasever / en / $ basearch / dag
baseurl=http://mirrors.kernel.org/fedora/core/$releasever/$basearch/os baseurl = http://mirrors.kernel.org/fedora/core/ $ releasever / $ basearch / os

Save the file and quit your text editor. Saglabāt failu un atmest savu teksta redaktoru. Now install GPG signature key for this server with the following command: Tagad uzstādīt GPG parakstīšanas atslēgā šī servera ar šādu komandu:

# rpm –import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt # Rpm-importa http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

You can add other repositories in a similar manner. Jūs varat pievienot citas krātuvēs līdzīgā veidā. Remember to install the GPG key for them if you do. Atcerēties uzstādīt GPG atslēga tos, ja jums darīt. Now update your YUM database so it contains the packages form the new repository: Tagad, atjauniniet savu YUM datu bāzē, lai tā satur paketes veidā jaunā repozitorija:

# yum check-update # Yum pārbaude-update

Now if you want to install a package all you have to do is run the command yum install followed by the package name. Tagad, ja vēlaties instalēt lietošanas viss, kas jums jādara, ir palaist komandu yum install seko pakete nosaukumu. Say you want to install the package cowsay , run the following command: Ka vēlaties uzstādīt paketes cowsay, palaidiet komandu:

# yum install cowsay # Yum install cowsay

If this package is in any of the repositories you have listed in your yum.conf file, YUM will promptly install it along with any dependencies. Ja šī pakete ir iesaistīta kādā no krātuves jums ir uzskaitīti jūsu yum.conf failu, YUM tiks nekavējoties uzstādīt kopā ar jebkurām atkarības. If not, it will report that it's not available. Ja tā nav, tas ziņo, ka tas nav pieejams.

If you want to update all the packages in your system run this command: Ja jūs vēlaties atjaunināt visas paketes, jūsu sistēma palaist šo komandu:

# yum update # Yum update

If you want to upgrade a single package: Ja jūs vēlaties, lai uzlabotu vienkāršā iepakojumā:

# yum update cowsay # Yum update cowsay

To remove an installed package: Lai noņemtu instal pakete:

# yum remove cowsay # Yum noņemt cowsay

You can also get a list of all the packages installed on your computer using this command: Jūs varat arī saņemt sarakstu ar visiem iepakojumiem instalēta jūsu datorā, izmantojot šo komandu:

# yum list installed # Yum saraksts uzstādīta

To get a list of all the updates available for your system: Lai iegūtu sarakstu ar visiem atjauninājumiem pieejamas jūsu sistēma:

# yum list updates # Yum saraksts atjauninājumi

YUM is a very powerful tool and it can make managing packages on a Linux system really simple. YUM ir ļoti spēcīgs instruments, un tā var sniegt vadības pakete ietekmē Linux sistēma patiešām vienkārša. Ubuntu users may be familiar with apt-get , a similar automated package installation tool. Ubuntu lietotāji var iepazīties ar apt-get, līdzīgi automatizēta pakotnes instalācijas rīks. If you have a large number of Linux machines in your network you can optionally setup a local YUM repository which can save you a lot of bandwidth. Ja jums ir daudz Linux automātu tīkla izvēles var setup vietējo YUM krātuve, ko varat ietaupīt daudz joslas platumu.

Related Posts: Related Posts:
  • How to install Fedora 7 using VirtualBox for OS X – a complete walkthrough Kā uzinstalēt Fedora 7 izmantojot VirtualBox OS X - pilnīgs Walkthrough
  • How to add and remove services from startup on Fedora Linux Kā pievienot un noņemt pakalpojumus no starta uz Fedora Linux
  • How to customize the EeeDora Panel Kā pielāgot EeeDora Panel
  • How to play MP3 files in Fedora Kā lai atskaņotu MP3 failus Fedora
  • How to block DDOS attacks in Linux Kā nobloķēt DDOS uzbrukumu Linux
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! Get Simple Palīdzība konsultācijas tāpat kā šo vienu savā e-pastā ik dienas - bez maksas! Just enter your email address below: Vienkārši ievadiet savu e-pasta adresi:

    You can always opt out of this email subscription at any time. Jūs vienmēr varat atteikties no šīs e-pasta abonementu jebkurā laikā.

    { 1 trackback } (1 Trackback)

    How to setup Yum « Linux & Stuff Kā setup Yum «Linux & Stuff
    05.28.09 at 10:50 am 05.28.09 at 10:50

    { 0 comments… (0 comments ... add one now pievienot vienu tagad } )

    Leave a Comment Leave Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Jūs varat izmantot šos HTML tagus un atribūtus: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>