Showing results for 
Search instead for 
Do you mean 
Posts: 10
Registered: ‎09-21-2008
0 Kudos
Accepted Solution

System upgrade

Hi everybody,


If a forgot the "no-copy" option at the "request system software add".

Can I simple delete the package out of the /var/sw/pkg/ dir? Or is for this a special command?

Why is this package per default in this dir?




Recognized Expert
Posts: 302
Registered: ‎04-22-2008
0 Kudos

Re: System upgrade

Hi Macindy 


You can use this command that will do the job for you:


"request system storage cleanup"


If you are not sure or if you just want to see what kind of files this command will erase you can use it this way:


"request system storage cleanup dry-run"


Nevertheless if you use it without the dry-run option the router will ask you to confirm if you realy want to erase the files.


On the other hand you will certainly be able do delete only the package file using this comand under the shell with the root permission:

"rm /cf/var/sw/pkg/junos-XYZ.tgz"


Finally to answer to your last question the file is here I believe, only to have a clear way to tidy files and to be able to recover it easily.











Posts: 10
Registered: ‎09-21-2008
0 Kudos

Re: System upgrade

Thank you for the quick answer - the cleanup command is a great solution. Thanks