Junos OS

 View Only

IMPORTANT MODERATION NOTICE

This community is currently under full moderation, meaning  all posts will be reviewed before appearing in the community. Please expect a brief delay—there is no need to post multiple times. If your post is rejected, you'll receive an email outlining the reason(s). We've implemented full moderation to control spam. Thank you for your patience and participation.



  • 1.  System upgrade

    Posted 02-09-2009 06:30

    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 


    #SYSTEM
    #request
    #add
    #software


  • 2.  RE: System upgrade
    Best Answer

     
    Posted 02-09-2009 08:24

    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

     

     

     

     

     

     



  • 3.  RE: System upgrade

    Posted 02-09-2009 08:38
    Thank you for the quick answer - the cleanup command is a great solution. Thanks