Junos
Reply
Contributor
Macindy
Posts: 10
Registered: ‎09-21-2008
0
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?

 

Thanks

Macindy 

Recognized Expert
Loup2
Posts: 301
Registered: ‎04-22-2008
0

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.

 

HTH

Regards

Alain

 

 

 

 

 

 

Contributor
Macindy
Posts: 10
Registered: ‎09-21-2008
0

Re: System upgrade

Thank you for the quick answer - the cleanup command is a great solution. Thanks
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.