cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12254
Views
1
Helpful
5
Replies

delete old iOS from flash

alliasneo1
Level 1
Level 1

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

 

 

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

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.

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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?


@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".

Leo Laohoo
Hall of Fame
Hall of Fame

@alliasneo1 wrote:

/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]


Those two files are fine to be removed.

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?