Showing posts with label openSuSE. Show all posts
Showing posts with label openSuSE. Show all posts

Saturday, May 12, 2007

How to install yum on SuSE Linux 10.2

People using suse are familiar with yast. But in this article, I want to show how you can install yum, on your suse machine.

1. Download yum and all its dependencies from this link:
http://download.opensuse.org/distribution/10.2/repo/oss/suse/i586/

python-urlgrabber
python-sqlite
rpm-python
yum-metadata-parser (used option --nodeps)
yum

2. Install them all using this command: -> rpm -Uvh (name of packages above)
but for yum-metadata-parser use -> rpm -Uvh --nodeps yum-metadata-parser

3. Prepare yum config file
a. -> cd /etc/yum.repos.d/
b. create file with .repo (ex: suse.repo) containing:
[base]
name=OpenSUSE_10.2 Base
type=rpm-md
baseurl=http://download.opensuse.org/distribution/10.2/repo/oss/suse/
gpgcheck=1
gpgkey=http://download.opensuse.org/distribution/10.2/repo
/oss/gpg-pubkey-a1912208-446a0899.asc
enabled=1

4. yum is ready for usage.


Tuesday, April 10, 2007

Building rpm from source file

This is for the Redhat, SuSE and CentOS user out there. Sometimes when you try to search for rpm packages, the only thing that you find is the source file. You create rpm file using this source file:
1. save the source file(usually in tar.gz or tar.bz2 format)
2. extract the files-> tar -xvzf filename.tar.gz or tar -xvjf filename.tar.bz2
3. open the folder of the extracted file and find .spec file
4. type-> rpmbuild -bb filename.spec
5. see the error and continue according to the error until you finish creating rpm files
6. type-> rpm -Uvh filename.rpm to install

Hope this one can help.