Fedora Core 6 packages problem

Discussion regarding the installation and configuration of Linux distributions.
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear saquib_javed,
Salam,

I am very pleased to know that you have done it ;)

Best Regards.
Farrukh Ahmed
saquib_javed
Naib Subedar
Posts: 344
Joined: Sat Apr 10, 2004 9:07 pm
Location: Karachi
Contact:

Post by saquib_javed »

dude it but thanks to you guys also

i made a backup of those files but can u still see whats the difference in it ?
Use Linux and feel Free.
OR
Feel free to use Linux. ;)
mansoor17177
Naik
Posts: 67
Joined: Thu May 26, 2005 11:14 am
Location: Peshawar
Contact:

Post by mansoor17177 »

Dear Saqib,

I followed the method u mentioned and succeded, but there is one problem, when i use GUI " add/remove software from system menu "I didn't see any thing in browse tab, only in showing packages in list tab. if i want to install a group of packages how will i do that?
saquib_javed
Naib Subedar
Posts: 344
Joined: Sat Apr 10, 2004 9:07 pm
Location: Karachi
Contact:

Post by saquib_javed »

:?
try

Code: Select all

# yum clean all 
and then try the add/remove package

hope that it works
Use Linux and feel Free.
OR
Feel free to use Linux. ;)
mansoor17177
Naik
Posts: 67
Joined: Thu May 26, 2005 11:14 am
Location: Peshawar
Contact:

Post by mansoor17177 »

Dear,

I tried it but not worked, do u have also this problem?
that nothing showing in Browse TAB


Regards.
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re"

Post by LinuxFreaK »

Dear mansoor17177,
Salam,

Post your configuration files also output of mount command.

Best Regards.
Farrukh Ahmed
saquib_javed
Naib Subedar
Posts: 344
Joined: Sat Apr 10, 2004 9:07 pm
Location: Karachi
Contact:

Post by saquib_javed »

no dude i can still see items in browse tab and also add and remove from it

post you configurations here so let us see
Use Linux and feel Free.
OR
Feel free to use Linux. ;)
zaki486
Company Havaldaar Major
Posts: 177
Joined: Tue Jul 08, 2003 11:33 pm
Location: karachi ,pakistan
Contact:

http://www.g-loaded.eu/2005/12/11/local-yum-repository/

Post by zaki486 »

Sometimes, especially when you create your own RPMs, it is extremely useful to keep them in a local YUM repository. The advantage of this is that, when you install a package, YUM automatically resolves any dependencies, not only by downloading the necessary packages from the other repositories you might have in you list, but also by using your local repo as a resource for potential dependencies.

So, when installing a package (eg my_package.rpm) with YUM, you are supposed to have already created RPM packages for all of the my_package.rpm‘s dependencies and to have updated the repository’s metadata, so that yum is able to resolve all the dependencies. If these dependencies do not exist in any of the repositories in your list, then, in short, you cannot install your package with yum.

So, in order to install an RPM package and all the other packages that it depends on, you only need to run:

# yum install my_package.rpm
How to create a local YUM repo
You will need an utility, named createrepo. Its RPM package exists in Fedora Extras. To install it, just run as root:

# yum install createrepo
Then, put all your custom RPM packages in a directory. Assuming that this directory is /mnt/fc_local_repo/, you can create all the necessary metadata for your local repository by running the following command as root or as the user that owns the directory:

# createrepo /mnt/fc_local_repo/
That’s it! Your local YUM repository is ready.

Keep in mind that every time you put any new RPMs in that directory or remove any old RPMs, you will need to run the above command again, so that the repository metadata gets updated.

Add your local repo to the list
The next thing you need to do is to add your local repository to your list of repos, so that yum knows where to find it. This info is kept in the /etc/yum.repos.d/ directory. As root, create a new text file in this directory, name it fedora-local.repo (you can use any name you like, but remember to add the extension .repo), and add the following info in it:

[localrepo]
name=Fedora Core $releasever - My Local Repo
baseurl=file:///mnt/fc_local_repo/
enabled=1
gpgcheck=0
#gpgkey=file:///path/to/you/RPM-GPG-KEY
As you can see, we used the protocol file:/// in the baseurl option. This assumes that the local repo exists in the local machine. If it exists in another machine of your internal network, feel free to use any other protocol in order to tell yum where to find your local repository, For example you can use http://, ftp://, smb:// etc.

In the above example, the GPG key check is disabled (gpgcheck=0). If you sign your packages, you can set this to "1" and uncomment the following line (gpgkey=...). This contains the path to your public key, so that YUM can verify the package signatures.

You can have as many local YUM repositories as you like.

Other uses of a local repository
Using a local repository does not only serve as a place for your custom RPMs. You can perfectly save some bandwidth by downloading all the released fedora updates in that repo and use this to update all the systems of your internal network. This will save bandwidth and time.
Certified Open Source Solution Provider
call me 0300-8902692
mailto:zaki@gestetner.com.pk
Post Reply