We run apt-cacher-ng server in our office for installing packages locally. However we are using different versions of ubuntu, and so the sources.list file varies for different distributions, all the source files were kept in the following location say ie.. http://172.29.39.100/ubuntu/............ and so on. What i need to do is first of all i need to find the ubuntu version using lsb_release -rs and then if the version is i.e 10.10 then the default sources.list should get replaced using wget from the following location,
If 10.10 then,
If 10.04 then,Code:wget http://172.29.39.100/ubuntu/1010/sources.list
How can i automate this task in bash script? Can anyone help me?Code:wget http://172.29.39.100/ubuntu/1004/sources.list
Bookmarks