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…
Question
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
- Login to the FTP server:
ftp 192.168.0.254(orftp server1.example.com) - Navigate to the directory containing the package:
cd /pub/updates - Download the package. Use
mgetfor multiple files orgetif you know the exact filename:mget zsh-*(If prompted for confirmation, typey) - Exit the FTP client:
bye - Install the downloaded package using
rpm:rpm -ivh zsh-* - Verify the package installation:
rpm -q zsh
Topics
Community Discussion
No community discussion yet for this question.