LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-13-2007, 02:44 PM   #1
High-gain
Member
 
Registered: Dec 2004
Location: London,UK
Distribution: Mandriva 2007
Posts: 156

Rep: Reputation: 15
Urpmi


Mandriva 2007.1

Hi There
wonder if anyone can help on these
couple of questions about Urpmi please

Not sure if this is a silly question, but does Urpmi
update the software that you have loaded and working with.

Also is it possible to just update one package via urpmi -
If it is - what commands would I use.
I have looked at the urpmi -help, but it's not making much
sense to me at the moment.

Any advice would be appreciated

Thanks
 
Old 12-13-2007, 03:25 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Urpmi will only upgrade packages if you run the gui update tools or enter
Code:
urpmi -auto-select
You can update an individual package by doin
Code:
urpmi package
 
Old 12-14-2007, 05:04 AM   #3
High-gain
Member
 
Registered: Dec 2004
Location: London,UK
Distribution: Mandriva 2007
Posts: 156

Original Poster
Rep: Reputation: 15
Hi There

Thanks for your input, will give those commands a whirl

Thanks again and Merry Christmas to all there
 
Old 01-04-2008, 08:48 AM   #4
al13ncr33d
LQ Newbie
 
Registered: Jan 2008
Location: West Sumatra, Indonesia
Distribution: Ubuntu
Posts: 5

Rep: Reputation: 0
hi every1...
please help me to solve my problem.

i just installed mandriva 2008 recently, and it works well.

my problem is i don't know how to make the local repository in my harddrive like i did on my ubuntu box.

can anyone guide me with this?
 
Old 01-04-2008, 09:11 AM   #5
Raymond C. Glassford
Member
 
Registered: Mar 2007
Location: USA
Distribution: Slitaz 4.0
Posts: 30

Rep: Reputation: 16
Quote:
Originally Posted by al13ncr33d View Post
hi every1...
please help me to solve my problem.

i just installed mandriva 2008 recently, and it works well.

my problem is i don't know how to make the local repository in my harddrive like i did on my ubuntu box.

can anyone guide me with this?
I suggest that you repost your message as a new topic, keeping it in this Mandriva forum. It will then be easier to spot and you will be sure to get the help you need.

I can provide you with the necessary information to create a custom repository, but it will take a little time to do, so I will have to post tomorrow. In the meantime, begin a new topic as I suggest. "How to create custom repository" would be a good title. I will reply later, and I am sure you will get many other responses.
 
Old 01-04-2008, 12:39 PM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi and welcome to LQ, al13ncr33d.

easyurpmi is where you can get your initial list from for building a package database on your computer for upgrades and general installs.
http://easyurpmi.guntner.com/

Just follow the instructions at easyurpmi and then sit back while the databases are collected from each repo. (IMO you want main-update, contrib, contrib-update and plf free, non-free and backports for the more adventurous.) If you want you can use your dvd/cd's and save the band-width for main, backports (they don't change much, and main is huge, about 50Mb).

A Tute, also from SoS...
http://seerofsouls.com/wiki/Informat...diaSources2007

A page that explains repo types...
http://seerofsouls.com/wiki/Information/PackageRepos

And from the same mob, SoS, here is a nice urpm usage page.
http://seerofsouls.com/wiki/UrpmTools/UrpmiUsage

I re-discovered these pages just yesterday, and found them useful and well presented.

I do not recommend upgrading kde in total if your not sure, as instructed at SoS, as it can get complex at times.

If you want to use rpm files from your hard drive, go to the directory where the rpms are and run as root...

genhdlist --md5sum

This will generate a hdlist.cz and md5sum files for that directory in that directory.

Next you will want to add it to your repo database. Like this...

urpmi.addmedia Local_rpms file://local/folder/of/rpms with hdlist.cz

The dvd/cd's copied during install...

urpmi.addmedia Local_2008.0_main32 file://var/ftp/pub/Mandriva/media/main32 with hdlist.cz
urpmi.addmedia Local_2008.0_main file://var/ftp/pub/Mandriva/media/main with hdlist.cz
urpmi.addmedia Local_2008.0_contrib file://var/ftp/pub/Mandrivalinux/media/contrib with hdlist.cz

The last bit is handy to know for later.

you may need to be root to do this.

I hope this helps, Glenn

Last edited by GlennsPref; 01-04-2008 at 12:43 PM. Reason: spelling and grama
 
Old 01-05-2008, 07:37 AM   #7
Raymond C. Glassford
Member
 
Registered: Mar 2007
Location: USA
Distribution: Slitaz 4.0
Posts: 30

Rep: Reputation: 16
Quote:
Originally Posted by al13ncr33d View Post
hi every1...
please help me to solve my problem.

i just installed mandriva 2008 recently, and it works well.

my problem is i don't know how to make the local repository in my harddrive like i did on my ubuntu box.

can anyone guide me with this?
CREATING A CUSTOM REPOSITORY

As I promised, here are the essentials on how to create a custom Mandriva Linux repository on your HDD. I am running Mandriva 2007.0, kernel 2.6.17-5mdv, but the basic procedure I will outline should hold true for Mandriva 2008.0 as well. I will describe how my custom repository is set-up. Keep in mind there are other ways it can be done (meaning, slight modifications). Most importantly, I recommend using the CLI exclusively for initial set-up. URPMI is the backend for GURPMI, the GUI frontend known as Mandriva Linux Control Center/Software Management. Only knowing how to use the GUI will not save you in every case if something goes drastically wrong. Post if something here is not clear, or if you need more details.

1. Using Konsole, or your favorite CLI, create a directory <mkdir> where you will be storing the RPM packages that will comprise your custom repository. I use the directory:

/home/myUserID/rpms/

Substitute your UserID in the above. You can name the directory anything you wish. I chose this particular path to my repository because it is easily accessible.

2. Add the following subdirectory <mkdir>:

/home/myUserID/rpms/pubkey/

Then copy <cp> the Pubkeys file to the newly created subdirectory. My Pubkeys file is located in:

/var/lib/rpm/

You will need to be logged-in as root to do this, and remaining logged-in as root will make the remainder of all this easier. If your Pubkeys file is not there, do a file search. Note: I am assuming here that you already have URPMI configured for some on-line repositories. If not, then the Pubkeys file might not exist, in which case I would recommend discontinuing this procedure and first concentrate on setting up URPMI to use on-line repositories (mirrors). Repost if you need more help on configuring URPMI to use Mandriva Linux mirrors.

3. Copy <cp> or move <mv> the desired RPM packages to the newly created directory </home/myUserID/rpms>. I make sure that root has ownership of all my RPMs <chown root:root *.rpm> Also, my file permissions read as follows:

[myUserID@localhost rpms]$ ls -l
total 6917
-rw-rw-r-- 1 root root 6958028 Dec 28 08:56 fp-linux-ws.rpm
-rw-r--r-- 1 root root 5447 Jan 2 17:08 hdlist.cz
-rw-rw-r-- 1 root root 86069 Jan 2 13:16 libgdk-pixbuf2-0.22.0-10mdv2007.0.i586.rpm
drwxr-xr-x 2 root root 1024 Dec 28 10:37 pubkey/
-rw-r--r-- 1 root root 443 Jan 2 17:08 synthesis.hdlist.cz

If your's do not, do <chmod 664 *.rpm>.

4. Now do <genhdlist>. This will write hdlist.cz and synthesis.hdlist.cz to the directory. Whenever, RPMs are added or deleted, hdlist.cz and synthesis.hdlist.cz must be removed <rm>. Then, you must do <genhdlist> again.

5. Now you are ready to create a custom repository. My custom repository is named HD (harddrive). Name your's anything you wish ... HDD, CUSTOM, LOCAL, whatever. So, in my case, I did:

<urpmi.addmedia HD /home/myUserID/rpms/>

You should see output indicating that the custom repository is being created. If something ever goes wrong and you want to discard the custom repository, you can do:

<urpmi.removemedia HD>

6. Next, do:

<urpmi.update HD>

You will see output indicating that new configuration files are being written. You might want to copy all output displayed to a text file for later reference, particularly if you want to find where some configuration files are located in the future. You will need to update your custom repository whenever RPMs are added or deleted.

6. Now you can go to Mandriva Linux Control Center/Software Management (GUI). Click on "Select from where software packages are downloaded when updating the system". You should see HD, or whatever you named your custom repository, on the list. Check-mark the box to enable the custom media. Make sure the HD line is highlighted. Then, click "Manage keys ...". If you have on-line repositories configured, you will have some keys from which to choose. I have added the key for my on-line main repository to my custom repository. Click OK. Next, click "Update ...", again making sure that HD is highlighted. HD in the GUI also needs to be updated every time RPMs are added or deleted.

7. Finally, go back to the "... Software Management" screen and click "Look at installable software and install software packages." Search for a RPM package you know is in your custom repository. It should then appear in the box below, unchecked. Check it, then click <apply>. It will be immediately installed, if there are no other needed dependencies. Note: the key you added to your custom repository might not match the key included in the RPM package, causing URPMI to complain. Just go ahead with the install. The keys can be manually matched-up if the original source of the package has been noted and recorded, but doing so is just extra work.

8. Keep in mind that you might have RPMs stored on HDD that are also available from an on-line repository. Uncheck all on-line sources if you only want to install from local sources (custom repository, installation discs, etc.), and vice-versa, uncheck all local sources if you want to get everything only from on-line sources. Select your download sources to fit specific circumstances. URPMI is a powerful, indispensable tool for Mandriva Linux; it should never be ignored or by-passed.

9. It is also important to note that RPM packages downloaded and installed using URPMI are not kept permanently on HDD; they are automatically deleted from cache after installation. If you want to keep all supplemental RPM packages you have downloaded, another procedure will have to be used (I use <wget> to download and keep RPM packages on HDD, later archived to CD). Post to this forum with the topic "How to keep RPM packages", if you want to know how I do it.

A problem might arise where what you see listed as installed and uninstalled in Mandriva Linux Control Center/Software Management might not reflect reality. In this case, your RPM database has become corrupted and will need to be rebuilt. All that is another topic altogether, and I will not discuss it here at this time. It, all I have covered, and more, is contained in the "Tools/urpmi" pages available from Mandriva Community Wiki at Mandriva's official website. Also, read <man urpmi> and related man pages for some basics. I can guarantee that Mandriva Linux can become as easy to use as basic MS-DOS, if a user does not constantly switch from one Linux distribution to another, as some seem to do on an almost daily basis.

http://wiki.mandriva.com/en/Docs/Bas...oving_software

--------------------------------------------------
Compaq Deskpro EN, Pentium III 933 MHz, 256 MB RAM, Nvidia Riva TNT2 AGP Card, Canon BJC-610 Printer, Best Data 56SX92 External Serial Modem, Mandriva 2007.0, kernel 2.6.17-5mdv, KDE 3.5.4
--------------------------------------------------
 
Old 01-08-2008, 05:22 AM   #8
al13ncr33d
LQ Newbie
 
Registered: Jan 2008
Location: West Sumatra, Indonesia
Distribution: Ubuntu
Posts: 5

Rep: Reputation: 0
It works!

Thank you for the guide, it works.

you guys rock!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax problem with noclean option for rpmdrake urpmi /var/cache/urpmi/rpms Emmanuel_uk Mandriva 12 05-06-2007 07:29 PM
urpmi ?? charnel Linux - General 2 04-13-2005 10:39 AM
What is URPMI? dabump Mandriva 1 05-28-2004 08:31 AM
urpmi the battle urpmi 7 me 0 aamehl Mandriva 4 12-22-2003 04:14 AM
urpmi.update --all / urpmi database locked thepoint Mandriva 5 11-05-2003 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration