Red_Hat
RH302 · Question #92
98: Backup of the Redhat Enterprise Linux 5 is on /var/ftp/pub, /var/www/html/pub on server named server1.example.com. You can install all required packages using yum by creating the repository file.
Answers: 1. Create the repository file #vi /etc/yum.repos.d/server1.repo [station?] name=station? baseurl=ftp://server1.example.com/pub/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-redhat-release yum install <packagename>
Service management
Question
98: Backup of the Redhat Enterprise Linux 5 is on /var/ftp/pub, /var/www/html/pub on server named server1.example.com. You can install all required packages using yum by creating the repository file.
Explanation
Answers:
- Create the repository file #vi /etc/yum.repos.d/server1.repo [station?] name=station? baseurl=ftp://server1.example.com/pub/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-redhat-release
yum install <packagename>
Topics
#yum repository#repo file#FTP/HTTP source#package management
Community Discussion
No community discussion yet for this question.