Downloading and Installing obsutil
Download Links
OS |
Software Package |
SHA-256 Checksum |
---|---|---|
Windows (64-bit) |
46440850e63600b31888f2c7c8e79db99f01d4ddd4e2b8a1e01af282ee4be93a |
|
Linux AMD (64-bit) Linux x86 (64-bit) |
5b1b04b8076ab6171abe9a8b91ec55aea3ceb026f7edfbe1fde831631a536c37 |
|
Linux ARM (64-bit) |
89ac3d9a57b2d9633be61e050024d52483881975f058e20c5e981a45587f9fa4 |
|
macOS (64-bit) |
7bf5afa0960e1ab163dccf0a53bcd6fe13b9d6f7d6ba541c116103bfa8424118 |
Getting Started with obsutil
You can download obsutil and then use it without installation. Methods of downloading obsutil vary depending on the OS type. For details, see the following:
Before performing the following operations, make sure that your cloud server has been connected to the Internet, or the obsutil installation will fail.
In Windows
- Download obsutil to your local PC.
- Decompress the software package.
- Use Command Prompt to go to the decompressed folder and run obsutil commands.
In Linux
- Open the CLI and run the wget command to download obsutil.
Linux AMD (64-bit) and Linux x86 (64-bit):
wget https://obs-community-intl.obs.ap-southeast-1.myhuaweicloud.com/obsutil/current/obsutil_linux_amd64.tar.gz
Linux ARM (64-bit):
wget https://obs-community-intl.obs.ap-southeast-1.myhuaweicloud.com/obsutil/current/obsutil_linux_arm64.tar.gz
- The URL after wget is the download link of the installation package, for which you do not need to make any adaptations. To download the package, just copy and run the whole wget command.
- You can also download the obsutil package from a PC running Windows and then use a cross-platform transfer tool (such as WinSCP) to transfer the package to your Linux host.
- Run the following command in the directory where the tool package resides:
tar -xzvf obsutil_linux_amd64.tar.gz
- Go to the directory where obsutil resides and run the following command to grant the execute permission on obsutil:
chmod 755 obsutil
You must grant the execute permission on obsutil, or error "No such file or directory" will be reported during a query of the obsutil version number.
- Continue to run the following command in the directory. If the version number of obsutil is returned, the installation is successful.
./obsutil version
Figure 1 Successful installation
In macOS
- Download obsutil to your local PC.
- Decompress the software package.
- Open the CLI, go to the directory where obsutil belongs, and run the following command to add execute permissions to obsutil:
chmod 755 obsutil
To improve the usability of obsutil, you can set obsutil commands as built-in commands by running the shell or batch script in the software package. This way, you can run obsutil commands in any directory. For details, see Setting obsutil Commands as Built-in Commands.
More Operations
If you need to use obsutil on a Huawei Cloud ECS, you can configure access over an intranet to reduce costs on traffic by referring to Using obsutil on a Linux ECS to Access OBS over an Intranet.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot