|
|
2 years ago | |
|---|---|---|
| .. | ||
| README.md | 2 years ago | |
| google_chrome_repackage.spec | 2 years ago | |
README.md
Google Chrome RPM Installation Guide
This guide provides step-by-step instructions for downloading and rebuilding the Google Chrome RPM package on a RPM-based Linux distribution.
Prerequisites
Before you proceed, ensure that you have the following prerequisites installed on your system:
rpmrebuild: A tool for rebuilding RPM packages.rpmbuild: The RPM Package Manager build tool.
Installation Steps
-
Download Google RPM
# Replace <URL> with the actual download URL wget <URL>/google-chrome-stable-119.0.6045.199-1.x86_64.rpm -
Rebuild the RPM Package
rpmrebuild -s google-chrome-stable.spec -p google-chrome-stable-119.0.6045.199-1.x86_64.rpm -
Extract the Contents
rpm2cpio google-chrome-stable-119.0.6045.199-1.x86_64.rpm | cpio -idmv -
Move Google Chrome to the Desired Location
mv opt/google usr/bin/ -
Create Symbolic Links
cd usr/bin/ rm -f google-chrome-stable ln -s google/chrome/google-chrome google-chrome-stable ln -s google/chrome/google-chrome chrome cd ../.. -
Create RPM Build Directory
mkdir -p $HOME/rpmbuild/BUILDROOT/google-chrome-stable-119.0.6045.199-1.x86_64 -
Copy Files to RPM Build Directory
for i in etc usr; do cp -r $i $HOME/rpmbuild/BUILDROOT/google-chrome-stable-119.0.6045.199-1.x86_64/; done -
Build the RPM Package
rpmbuild -bb google-chrome-stable.spec
After completing these steps, you should have successfully downloaded, rebuilt, and repackaged the Google Chrome RPM for your system. The resulting RPM package will be available in the RPM build directory ($HOME/rpmbuild/RPMS/x86_64/).
Note: Ensure that you replace <URL> with the actual download URL of the Google Chrome RPM.