A tool to extract the RPMs from LNT ISOs so that, for example, the original RPMs that came in an ISO can be re-installed if required for a downgrade scenario.
This tool can be run on at least the distributions listed below. It may work on others too, but these have been tested.
Run the following (possibly with sudo
) to install the required packages:
apt-get update
apt-get install -y python3 genisoimage cpio
Run the following (possibly with sudo
) to install the required packages:
yum -y install python3 genisoimage cpio
The tool can be run as follows:
./xr-image-extract-rpms --output-dir <output-dir> <iso-path>
It will put all the RPMs found in the specified ISO into the specified directory.
The RPMs may go into subdirectories of that directory; do not rely on the exact directory layout as it may change in the future. If necessary run
find <output-dir> -name "*.rpm" -type f
to find all of the extracted RPM files.
Copyright (c) 2020-21 by Cisco Systems, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.