Hot answers tagged

2

I also caught that problem, try this: vim /etc/yum.repos.d/nginx.repo Change the repo site: [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/6/$basearch/ gpgcheck=0 enabled=1 So: http://nginx.org/packages/centos/6/$basearch/ Please read the instructions completely: Due to differences between how CentOS, RHEL, and Scientific ...


2

you should use XML tools to manipulate XML structures sed is meant to process stuff on a line-by-line basis, you probably want to go for awk to solve this type of substitution. To solve your problem with awk: awk '/<Target /,/<\/Target>/ { next } 1' your_file edit: just found: sed can do the same thing sed '/<Target ...


1

The answer from Matija Nalis only half worked for me (alsamixer changed default, but other things like aplay and firefox stubbornly stuck with the wrong default). This example from the debian wiki worked for me (on CentOS-6 laptop): defaults.pcm.!card Generic_1 defaults.ctl.!card Generic_1 defaults.pcm.!device 0 defaults.ctl.!device 0 For the record: ALSA ...



Only top voted, non community-wiki answers of a minimum length are eligible