11-09-2022 06:08 AM
Hi, I've just recently upgraded to iOS 17.06 and I've used the following commands:
Switch# copy tftp://10.91.113.6//cat9k_lite_iosxe.17.06.03.SPA.bin flash:
Switch# dir flash:*.bin
Switch(config)# boot system flash:packages.conf
Switch# write memory
Switch# show boot system
Switch# install add file flash://cat9k_lite_iosxe.17.06.03.SPA.bin activate commit
and this all works fine but if I then want to remove the old ios files I am using:
install remove inactive
but it then brings up a list of the old iOS and the new 17.06.03 like this:
Cleaning flash:
Scanning boot directory for packages ... done.
Preparing packages list to delete ...
cat9k_lite-rpbase.17.06.03.SPA.pkg
File is in use, will not delete.
cat9k_lite-rpboot.17.06.03.SPA.pkg
File is in use, will not delete.
cat9k_lite-srdriver.17.06.03.SPA.pkg
File is in use, will not delete.
cat9k_lite-webui.17.06.03.SPA.pkg
File is in use, will not delete.
packages.conf
File is in use, will not delete.
done.
The following files will be deleted:
[switch 1]:
/flash/cat9k_lite-rpbase.16.12.03a.SPA.pkg
/flash/cat9k_lite-rpboot.16.12.03a.SPA.pkg
/flash/cat9k_lite-srdriver.16.12.03a.SPA.pkg
/flash/cat9k_lite-webui.16.12.03a.SPA.pkg
/flash/cat9k_lite_iosxe.17.06.03.SPA.bin
/flash/cat9k_lite_iosxe.17.06.03.SPA.conf
Do you want to remove the above files? [y/n]
Am I pressing Y to this? It just makes it look like it's going to remove version 17.06.bin?
thanks
11-09-2022 07:41 AM - edited 11-09-2022 07:50 AM
EDIT :
i read wrong - installation and upgrade done you looking to remove files ?
then Y
for 17.X (File is in use, will not delete)
Make sure you copy this conf - content (in case required) /flash/cat9k_lite_iosxe.17.06.03.SPA.conf
if packages.conf and this content same you happy to delete.
11-10-2022 03:18 AM
Hi, thank you for the replay. Could you explain a little more about - copy this conf - content (in case required) /flash/cat9k_lite_iosxe.17.06.03.SPA.conf?
11-10-2022 03:29 AM
@alliasneo1 wrote:
Could you explain a little more about - copy this conf - content (in case required) /flash/cat9k_lite_iosxe.17.06.03.SPA.conf?
The contents of cat9k_lite_iosxe.17.06.03.SPA.conf and packages.conf are the same.
See for yourself: Compare the output of the command "more flash:cat9k_lite_iosxe.17.06.03.SPA.conf" and "more flash:packages.conf".
11-09-2022 02:54 PM
@alliasneo1 wrote:
/flash/cat9k_lite_iosxe.17.06.03.SPA.bin
/flash/cat9k_lite_iosxe.17.06.03.SPA.confDo you want to remove the above files? [y/n]
Those two files are fine to be removed.
11-10-2022 03:19 AM
So the olden days of upgrading it would always the .bin files? But this new way now puts the iOS into the packages.conf location, is that right? so you can delete the bin?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide