Remove package with Yum
Answer:
You can use the following command to remove packages using yum,
e.g. remove Firefox
yum remove firefox
To remove multiple packages, try
yum remove firefox gedit
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Remove package with Yum
Answer:
You can use the following command to remove packages using yum,
e.g. remove Firefox
yum remove firefox
To remove multiple packages, try
yum remove firefox gedit
How to remove installed package using RPM?
Answer:
To remove installed package using rpm, use the following command
e.g. remove Firefox
rpm -e firefox
To remove multiple packages, try
rpm -e firefox gedit
Why sometimes kill does not work
Answer:
Sometimes you might noticed that kill statement does not work in some cases, e.g.
kill program
The reason is that the kill statement send a SIGTERM signal to the target process by default and tell the process to terminate itself. However, this signal can be catch up by the process and therefore can be ignored if the program's writer choose to ignore.
To kill a process at all cost, use
kill -9 program
SIGKILL will be send instead of SIGTERM, which cannot be caught or ignored.
Prevent go way SSH session killing running job
Answer:
If you are executing a long running job over SSH session, when your SSH session is terminated for whatever reason, e.g. unstable network connection. Your long running job will die (it will receive a hangup/hup signal) when the SSH session was killed.
To overcome this, when executing long running job over SSH, use the following way
nohup program &
How to redirect output to more than one place
Answer:
It is easy to redirect output to a file by using >
E.g.
cat test.txt > foo.txt
But if you want to redirect to more than one file, you can use the tee command
E.g.
cat test.txt | tee bar.txt > foo.txt