Redhat Linux 9: Những lưu ý khi cài đặt gói RPM từ server FTP
ylist:
Link playlist
Red Hat Enterprise Linux Administration
2024 01 15 04 02 51
Install RPMs from Remote Systems
With the RPM system, you can even specify package locations similar to an Internet address,
in URL format. For example, if you want to apply the rpm command to the foo.rpm package
on the /pub directory of the ftp.rpmdownloads.com FTP server, you can install this package
with a command such as the following:
# rpm -ivh ftp://ftp.rpmdownloads.com/pub/foo.rpm
Assuming you have a network connection to that remote server, this particular rpm
command logs on to the FTP server anonymously and downloads the file. Unfortunately,
an attempt to use wildcards in the package name with this command leads to an error
message associated with “file not found.” The complete package name is required, which
can be an annoyance.
If the FTP server requires a username and password, you can include them in the
following format:
ftp://username:password@hostname:port/path/to/remote/package.rpm
where username and password are the username and password you need to log on to this
system, and port, if required, specifies a nonstandard port used on the remote FTP server.
Based on the preceding example, if the username is mjang and the password is Ila451MS,
you could install an RPM directly from a remote server with the following command:
# rpm -ivh ftp://mjang:Ila451MS@192.168.122.1/pub/inst/
policycoreutils-gui-3.4-4.el9.x86_64.rpm
[ad_2]
source