LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   creterepo and httpd instalation in RHEL 5 (https://www.linuxquestions.org/questions/red-hat-31/creterepo-and-httpd-instalation-in-rhel-5-a-679382/)

sravanth.svk 10-27-2008 02:02 PM

creterepo and httpd instalation in RHEL 5
 
HI all,
I have installed RHEL 5 version on my laptop which we get from the training partners.
after installation i tried installing http packages using rpm it gave me dependency errors .
then one of my fried suggested to install createrepo. and then use yum
and as i am installing on the local system id did not understand the reason behind creating a repository.
some one has shown me the process of using yum and the repo using the pre available script.but i would like to know step by step
please advice.

One more thing i don't understand is that y the option --aid is not installing the needed packeges.

2) if some on can give me the parameters to be passed at the boot prompt at the time of installation to detect the sata hard disk in RHEL4i will be very happy as i think i have no problem using RHEL4
my laptop is dell latitude is d630.


thanks in advance
sravanth.svk

unSpawn 11-01-2008 05:57 AM

Quote:

Originally Posted by sravanth.svk (Post 3323311)
after installation i tried installing http packages using rpm it gave me dependency errors .

Best to post actual error messages, not a description of the error.


Quote:

Originally Posted by sravanth.svk (Post 3323311)
id did not understand the reason behind creating a repository.

Having all packges locally means resolution remains local. Comes in handy when you don't have 'net access or have your own repo of software.


Quote:

Originally Posted by sravanth.svk (Post 3323311)
some one has shown me the process of using yum and the repo using the pre available script.but i would like to know step by step please advice.

Code:

# Copy directory structure
cp -r /source_dir/redhat/RPMS/ /target_dir
# Create cache dir
mkdir /target_dir/redhat/RPMS/cache
createrepo -u /target_dir/redhat/RPMS/ -o /target_dir/redhat/RPMS -v \
 -c /target_dir/redhat/RPMS/cache /target_dir/redhat/RPMS
# Then set access rights where necessary
# Create Yum local repo config:
echo "[localrepo]
name=localrepo
baseurl=file:///target_dir/redhat/RPMS/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-beta" >> /etc/yum.repos.d/localrepo.repo
# Then use 'yum --disablerepo=\* --enablerepo=localrepo [command]'

That should do it.


Quote:

Originally Posted by sravanth.svk (Post 3323311)
One more thing i don't understand is that y the option --aid is not installing the needed packeges.

Come again?


Quote:

Originally Posted by sravanth.svk (Post 3323311)
if some on can give me the parameters to be passed at the boot prompt at the time of installation to detect the sata hard disk in RHEL4i will be very happy as i think i have no problem using RHEL4

SATA detection should be automagical if hardware is supported, SATA is enabled in the BIOS settings and the kernel version has drivers?

rayfordj 11-08-2008 10:01 PM

Quote:

Originally Posted by sravanth.svk (Post 3323311)
One more thing i don't understand is that y the option --aid is not installing the needed packeges.

I believe you are referring to the rpm "--aid" option which will attempt to resolve dependencies using packages in current directory or locations specified in /etc/sysconfig/up2date/something-or-other (been a while and no RHEL4 system for me to check for accuracy at the moment). I've only ever used it in RHEL4 and it was a band--aid to get something done quickly because I needed it done then.

Quote:

Originally Posted by sravanth.svk (Post 3323311)
2) if some on can give me the parameters to be passed at the boot prompt at the time of installation to detect the sata hard disk in RHEL4i will be very happy as i think i have no problem using RHEL4
my laptop is dell latitude is d630.

you may try passing the 'all-generic-ide' parameter from the RHEL4 installer boot: prompt.


All times are GMT -5. The time now is 10:59 AM.