How to show custom sidebar in category page only ?

To show a sidebar you should set a layout with a sidebar to the page: how to specify the number of columns on a page through a layout file.