How to use newer esp8266/Arduino/lib

As the lkibrary available at GitHub - esp8266/Arduino: ESP8266 core for Arduino relaese 2.2.0 is bugged and cannot be use for OTA,
how to use 2.3.0-rc1which is corrected (http://arduino.esp8266.com/versions/2.3.0-rc1/package_esp8266com_index.json) ?

Hi @PaTricK-77100!
Please take a look at this page in our docs: Using Arduino Framework with Staging version

I am not sure to understand all,
but it seem to me that it is not so simple:
the directory %HOMEPATH%.platformio\packages\framework-arduinoespressif contain that:
13/04/2016 20:13 67 451 boards.txt
25/04/2016 13:35 DIR bootloaders
25/04/2016 13:35 DIR cores
25/04/2016 13:35 DIR libraries
25/04/2016 13:40 205 package.json
18/04/2016 10:24 6 140 platform.txt
24/11/2015 10:50 0 programmers.txt
04/06/2016 17:51 DIR tools
04/06/2016 17:51 DIR variants
21/04/2016 10:04 5 version.txt

and esp8266\2.3.0-rc1contain that:
10/05/2016 15:51 66 527 boards.txt
24/11/2015 10:50 DIR bootloaders
29/10/2015 23:37 DIR cores
25/04/2016 15:04 DIR doc
04/04/2016 21:39 886 ISSUE_TEMPLATE.md
11/05/2016 08:40 DIR libraries
24/11/2015 10:50 26 529 LICENSE
11/05/2016 08:40 5 859 platform.txt
24/11/2015 10:50 0 programmers.txt
25/04/2016 15:04 6 890 README.md
06/05/2016 05:17 DIR tests
25/04/2016 15:04 DIR tools
04/04/2016 21:39 DIR variants

it is similar but not the same …

should I copy all similar files and directory and modify file for
package.json and version.txt with the new release number ?

Yep, just copy the similar folders to framework-arduinoespressif package and modify version.txt and package.json files.

Yes I do that but it is not working,

I go back to arduino IDE which is working ( for that …)