what is the function of /etc/apt/sources.list.d?

The function of the /etc/apt/sources.list.d directory is as follows: Using the directory you can easily add new repositories without the need to edit the central /etc/apt/sources.list file. I.e. you can just put a file with a unique name and the same format as /etc/apt/sources.list into this folder and it is used by apt. In order … Read more

How to upgrade glibc on Debian?

I was able to install libc6 2.17 in Debian Wheezy by editing the recommendations in perror’s answer: IMPORTANT You need to exit out of your display manager by pressing CTRL–ALT–F1. Then you can stop x (slim) with sudo /etc/init.d/slim stop (replace slim with mdm or lightdm or whatever) Add the following line to the file … Read more

Installing Java 7 (Oracle) in Debian via apt-get [closed]

Managed to get answer after do some google.. echo “deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main” | tee -a /etc/apt/sources.list echo “deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main” | tee -a /etc/apt/sources.list apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys EEA14886 apt-get update # Java 7 apt-get install oracle-java7-installer # For Java 8 command is: apt-get install oracle-java8-installer

System updates for many servers

You can use the exec type such as: exec { “upgrade_packages”: command => “apt-get upgrade -q=2”, path => “/usr/local/bin/:/bin/:/usr/bin/”, # path => [ “/usr/local/bin/”, “/bin/” ], # alternative syntax } To be honest, I did not try it myself, but I think you just need to create a new module that include such an exec … Read more