How to know from which yum repository a package has been installed?

With yum-utils installed, repoquery will provide the information you seek (here ‘epel’ being the repository). $ repoquery -i cherokee Name : cherokee Version : 0.99.49 Release : 1.el5 Architecture: i386 Size : 8495964 Packager : Fedora Project Group : Applications/Internet URL : http://www.cherokee-project.com/ Repository : epel Summary : Flexible and Fast Webserver Description : Cherokee … Read more

Should I quit using Ifconfig?

Quoting Thomas Pircher‘s website (cc-by-sa): ifconfig vs ip The command /bin/ip has been around for some time now. But people continue using the older command /sbin/ifconfig. Let’s be clear: ifconfig will not quickly go away, but its newer version, ip, is more powerful and will eventually replace it. The man page of ip may look … Read more

How to reconnect to a disconnected ssh session

UPDATE: For an actual answer see zero_r’s answer below This isn’t an answer, but a workaround. Use screen. When you first log in, run screen. You get another shell, run commands in that. If you’re disconnected, the screen process keeps the terminal alive so that your shell and the processes it is running don’t fall … Read more

LVM dangers and caveats

Summary Risks of using LVM: Vulnerable to write caching issues with SSD or VM hypervisor Harder to recover data due to more complex on-disk structures Harder to resize filesystems correctly Snapshots are hard to use, slow and buggy Requires some skill to configure correctly given these issues The first two LVM issues combine: if write … Read more

How to setup passwordless `sudo` on Linux?

EDIT thanks to medina’s comment: According to the man page, you should be able to write ALL ALL = (ALL) NOPASSWD: ALL to allow all users to run all commands without a password. For reference, I’m leaving my previous answer: If you add a line of the form %wheel ALL = (ALL) NOPASSWD: ALL to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)