nerdexam
Red_Hat

RH302 · Question #162

A package named zsh is located at ftp://server1.example.com/pub/updates/. Your FTP server is 192.168.0.254. Install the zsh package on your system.

To install the zsh package from the specified FTP server, you can use rpm directly or download it manually first. Method 1: Using rpm with a direct FTP URL (if supported by your rpm version and network configuration) rpm -ivh ftp://server1.example.com/pub/updates/zsh- (Note…

System configuration

Question

A package named zsh is located at ftp://server1.example.com/pub/updates/. Your FTP server is 192.168.0.254. Install the zsh package on your system.

Explanation

To install the zsh package from the specified FTP server, you can use rpm directly or download it manually first.

Method 1: Using rpm with a direct FTP URL (if supported by your rpm version and network configuration) rpm -ivh ftp://server1.example.com/pub/updates/zsh-* (Note: The wildcard zsh-* assumes the exact filename might include version numbers or architecture details).

Method 2: Manual download using an ftp client and then rpm installation

  1. Login to the FTP server: ftp 192.168.0.254 (or ftp server1.example.com)
  2. Navigate to the directory containing the package: cd /pub/updates
  3. Download the package. Use mget for multiple files or get if you know the exact filename: mget zsh-* (If prompted for confirmation, type y)
  4. Exit the FTP client: bye
  5. Install the downloaded package using rpm: rpm -ivh zsh-*
  6. Verify the package installation: rpm -q zsh

Topics

#RPM#package installation#FTP repository#yum

Community Discussion

No community discussion yet for this question.

Full RH302 Practice