eduardo:linux:yum
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
eduardo:linux:yum [2014/11/17 09:12] – eduardo | eduardo:linux:yum [2024/02/23 08:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Yum ====== | ||
+ | YUM is the package management tool that help to install or update the package through the network or local, the same time it provides easy method to install a package with it’s dependent packages. Configuration files are under /etc directory, / | ||
+ | |||
+ | ===== CDROM/DVD ===== | ||
+ | |||
+ | First you must determine the name of the CD-ROM or DVD drive and there are 3 methods: | ||
+ | |||
+ | **[a] dmesg Command** | ||
+ | |||
+ | dmesg command is used to examine the Linux kernel ring buffer i.e. display bootup messages on screen. To find out if cdrom was detected or not, run: | ||
+ | |||
+ | < | ||
+ | bash# dmesg | egrep -i --color ' | ||
+ | |||
+ | ata2.00: ATAPI: VMware Virtual IDE CDROM Drive, 00000001, max UDMA/33 | ||
+ | sr0: scsi3-mmc drive: 1x/1x writer dvd-ram cd/rw xa/form2 cdda tray | ||
+ | </ | ||
+ | |||
+ | **[b] / | ||
+ | |||
+ | < | ||
+ | bash# cat / | ||
+ | |||
+ | CD-ROM information, | ||
+ | |||
+ | drive name: sr0 | ||
+ | drive speed: | ||
+ | drive # of slots: | ||
+ | Can close tray: 1 | ||
+ | Can open tray: 1 | ||
+ | Can lock tray: 1 | ||
+ | Can change speed: | ||
+ | Can select disk: 0 | ||
+ | Can read multisession: | ||
+ | Can read MCN: 1 | ||
+ | Reports media changed: | ||
+ | Can play audio: | ||
+ | Can write CD-R: 1 | ||
+ | Can write CD-RW: | ||
+ | Can read DVD: 1 | ||
+ | Can write DVD-R: | ||
+ | Can write DVD-RAM: | ||
+ | Can read MRW: 1 | ||
+ | Can write MRW: 1 | ||
+ | Can write RAM: 1 | ||
+ | |||
+ | bash# | ||
+ | </ | ||
+ | |||
+ | **[c] lsblk command** | ||
+ | |||
+ | < | ||
+ | bash# lsblk | ||
+ | |||
+ | NAME | ||
+ | sda 8:0 1 | ||
+ | ├─sda1 | ||
+ | ├─sda2 | ||
+ | ├─sda3 | ||
+ | ├─sda4 | ||
+ | └─sda5 | ||
+ | sr0 | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Mount CDROM/DVD ===== | ||
+ | |||
+ | Insert the Red Hat Enterprise Linux Server DVD into your DVD-ROM drive and mount the CD/DVD ROM on the any directory of your wish, for testing mount it on /mnt/cdrom. | ||
+ | |||
+ | < | ||
+ | bash# mkdir /mnt/cdrom | ||
+ | |||
+ | bash# mount /dev/sr0 /mnt/cdrom | ||
+ | </ | ||
+ | |||
+ | ===== Config Repository ===== | ||
+ | |||
+ | Create a new repository file. | ||
+ | |||
+ | < | ||
+ | bash# vi / | ||
+ | |||
+ | [dvd] | ||
+ | name=DVD Repo | ||
+ | baseurl=file:/// | ||
+ | enabled=1 | ||
+ | gpgcheck=1 | ||
+ | gpgkey=file:/// | ||
+ | </ | ||
+ | |||
+ | ===== Install from CDROM/DVD ===== | ||
+ | |||
+ | Now you should be able to install from CDROM or DVD | ||
+ | |||
+ | < | ||
+ | bash# yum install < | ||
+ | </ | ||