Unzip under Aix

Source: Internet
Author: User

When I uploaded the ZIP file to the AIX server and decompressed it using the unzip command, the system prompts that the zip command does not exist,

Find the online, first download the unzip-5.51-1.aix5.1.ppc.rpm file, and then upload to the/usr/bin directory,

Run the command rpm-IVH unzip-5.51-1.aix5.1.ppc.rpm to install and then use



----------------------------------------------------

Which of the following is from the Internet?Install the RPM software package on Aix,

For reference

1. Install RedHat Package Manager-rpm. rte from Linux application toolbox CD
2. Install RPM Software
# Rpm-IVH fileset_name
For example, if unzip 5.42 for AIX 4.3.3 is installed and the RPM package is unzip-5.42-2.aix4.3.ppc.rpm, run the following command:
# Rpm-IVH unzip-5.42-2.aix4.3.ppc.rpm
Unzip ####################################### ###########
# Indicates the installation progress. If no error message is displayed after the installation ends, the installation is successful.
3. Check the installation result
# Rpm-Q fileset_name
For example, in the previous example, check whether unzip 5.42 is correctly installed:
# Rpm-Q unzip-5.42-2
Unzip-5.42-2
Indicates that the package has been correctly installed. If it is displayed:
# Rpm-Q unzip-5.42-2
The package unzip-5.42-2 is not installe d
It indicates that the installation is not correct.
Note: The package name and file name are different.
4. Uninstall/Delete the installed files.
# Rpm-e fileset_name
For example, in the preceding example, to delete the unzip 5.42 installed, run the following command:
# Rpm-e unzip-5.42-2
If there is no prompt, the deletion is successful. If there are any errors, the RPM will prompt an error message, for example:
# Rpm-e unzip-5.42-2
Error: Package unzip-5.42-2 is not installed
Indicates that the package does not exist on the system.

5. check what is in this package, assuming the file is: unzip-5.42-2.rpm, we can use this command to view:
Rpm-QPI unzip-5.42-2.rpm
The system will list detailed information about the software package, including the number of files, file names, file size, Creation Time, and compilation date.

6. Run the following command to check which parts of the software package will be installed in the system to facilitate our selection:
Rpm-qpl unzip-5.42-2.rpm

7. during the installation process, if the system prompts that the software has been installed or cannot be installed for other reasons, but if we really want to execute the installation command, you can add the parameter "-replacepkgs" after-IVH ":
Rpm-IVH-replacepkgs Linux-1.4-6.i368.rpm

8. After each software package is installed, the installation file will be "reported" in the RPM database. Therefore, to query the attributes of a software already installed, you only need to search for it in this database. Note: The query command is different from the query commands described in 1 and 7. This method is only applicable to installed software packages! Command Format:
Rpm-Parameters

9. during use, we will inevitably encounter files we don't know. In Windows, we can use the "Start/search" menu to quickly determine which folder a file belongs to. in Linux, the following command line can help us quickly determine which software package a file belongs:
Rpm-QF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.