Download RPM and dependencies from yum repo

Use repotrack-command.

To get repotrack, install yum-utils.

yum install yum-utils

Usage:

repotrack -p DIR PKG

where DIR is the directory to download rpms and PKG is the actual package you want. Wild card is allowed.

As an example, following command downlads all ncurses-packages and all dependencies to /repo/rpm directory

repotrack -p /repo/rpm ncurses*

 

Change host name

To temporarily change the host name, use command:

hostname newname.somedomain.net

To permanently change the hostname, open file /etc/sysconfig/network. Use, for example, vi-editor:

vi /etc/sysconfig/network 

Find and change following line to your host name (and domain)

HOSTNAME=newname.somedomain.net

save file and restart network service

service network restart

This works in CentOS and Red Hat version 6.x. You may also need to change /etc/hosts file.

Welcome!

Welcome to Random Develop(er/ment)!

This site is work in progress and the main purpose, or the core idea, probably changes over time.

But for now, the core idea is to document solutions to problems (related to working with computers) I encounter in real life.

Most, if not all, solutions are found in many places in the Internet and I’m far too lazy to point to original source(s) in my posts.

And for the record: I, The Random Developer, am (IRL) Sami Salkosuo.