LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-19-2006, 12:16 AM   #1
lion_heart_300
Member
 
Registered: Sep 2005
Posts: 130

Rep: Reputation: 15
rpm package


Hello every one …..
I using fedora linux and I have some package .rpm and I need one command for upgrading package and install new package .
And what a command for remove packade .
Thanks for all
 
Old 06-19-2006, 12:25 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
What version of Fedora Core are you using? I have found the "smart" (http://labix.org/smart) package manager to work well for me, just as I have found yum to not work well at all. Personally, I like to decide what I am going to install, look over what I am going to install before I install it and install what I want to install the way I want to install it. "Smart" lets me do all of these things as well as lets me see everything about what I have installed whenever I want to. Yum doesn't have any of these features. "Smart" will be able to do everything that you have asked for above. However, you will have to manually install "smart" using rpm from the command line since yum can't even do that.
 
Old 06-19-2006, 01:28 AM   #3
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Indeed, smart is definetly recommendable over yum!
 
Old 06-19-2006, 04:44 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can use rpm itself or yum. To install local packages with yum, do something like "yum localinstall somefile.rpm". To upgrade "yum upgrade somefile.rpm" and to remove do "yum remove somefile". I've never had any major problems with YUM.
 
Old 06-19-2006, 05:51 AM   #5
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
yum is sloooooooow
 
Old 06-19-2006, 08:39 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by elluva
yum is sloooooooow
Not for me. YUMs speed depends on your network connection and the mirrors near your country.
 
Old 06-19-2006, 09:49 AM   #7
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
From reddazz

Not for me. YUMs speed depends on your network connection and the mirrors near your country.
What about those who don't want to depend on being connected to the net in order to install or update their packages? Yum has no capability whatsoever to work with local packages. "Smart" does let you work with local packages, however. Further, command line oriented rpm may get the job done, provided you can wade through the clutter without getting totally lost and thereby possibly completely ruining your system because you missed something critical. That is why "smart" is so good, being a GUI front end to rpm. It lays everything out for you to see and look over however many times you need to, before you actually do the operation.
 
Old 06-19-2006, 10:30 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by xode
What about those who don't want to depend on being connected to the net in order to install or update their packages? Yum has no capability whatsoever to work with local packages. "Smart" does let you work with local packages, however. Further, command line oriented rpm may get the job done, provided you can wade through the clutter without getting totally lost and thereby possibly completely ruining your system because you missed something critical. That is why "smart" is so good, being a GUI front end to rpm. It lays everything out for you to see and look over however many times you need to, before you actually do the operation.
You can configure yum to use your installation discs as package sources. There is a thread about this somewhere in the Fedora Core forum. Smart can be installed without a GUI and used from the command line. YUM also has gui's available and one of my favourite ones is yumex.
 
Old 06-19-2006, 11:02 AM   #9
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
From reddazz

You can configure yum to use your installation discs as package sources.
And what about local packages that are not on your install CDs, like xine, qemu, etc.? Further, configuring yum to work with the install CDs is quite difficult, as the presence of a thread in the Fedora Core forum would seem to suggest. On the other hand, I had no trouble whatsoever figuring out how to use "smart" right off the bat.

Quote:
From reddazz

Smart can be installed without a GUI and used from the command line.
That is true but isn't what I do. When I referenced "smart," I meant "smart" with the GUI.

Last edited by xode; 06-19-2006 at 11:05 AM.
 
Old 06-19-2006, 11:39 AM   #10
lion_heart_300
Member
 
Registered: Sep 2005
Posts: 130

Original Poster
Rep: Reputation: 15
my friends i need one command for upgrading package and install new package .
as slackware (upgradepkg --install-new *.tgz
i need same command for fedora 4
 
Old 06-19-2006, 12:20 PM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by xode
And what about local packages that are not on your install CDs, like xine, qemu, etc.? Further, configuring yum to work with the install CDs is quite difficult, as the presence of a thread in the Fedora Core forum would seem to suggest. On the other hand, I had no trouble whatsoever figuring out how to use "smart" right off the bat.



That is true but isn't what I do. When I referenced "smart," I meant "smart" with the GUI.
Code:
#yum localinstall somefile.rpm
That installs a local package (as I mentioned in my first post ) and if there are any dependencies, yum can search for them on other sources you have configured. I am not sure how hard it is to use yum with your installation discs, but it seems like its not so difficult particularly if you use the dvd. From fedoraforum.org, all you need to do is add the code below to /etc/yum/repos.d
Code:
[base dvd]
name=Fedora Base DVD
baseurl=file:///media/cdrom/
enabled=1
I think it was a great error on the FC devs not to include some way of doing this graphically, because it it would make the procedure easier for some people.
 
Old 06-19-2006, 12:31 PM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by lion_heart_300
my friends i need one command for upgrading package and install new package .
as slackware (upgradepkg --install-new *.tgz
i need same command for fedora 4
What exactly are you trying to do. If you are trying to upgrade a package thats already installed, you can do
Code:
#rpm -Uvh somefile.rpm
or
Code:
#yum localupdate somefile.rpm
 
Old 06-19-2006, 03:40 PM   #13
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
From reddazz

#yum localinstall somefile.rpm
Neither yum localinstall nor yum localupdate work with the yum version (i.e. 2.3.2.7) that is originally installed by the FC4 install CDs. You need yum 2.4.X for that and you can't get the yum that you do have to install it if you don't want to connect your computer directly to the net.

Quote:
From reddazz

[base dvd]
name=Fedora Base DVD
baseurl=file:///media/cdrom/
enabled=1
This would be interesting to try out, considering that I was able to get kyum installed using "smart," once I had "smart" installed. Kyum, unlike yumex, doesn't require yum 2.4.X so I installed it just to see what it looked like. Maybe, in time, I might also upgrade yum and install yumex, just to see what it looks like. My understanding is that "[base dvd]" and "name=Fedora Base DVD" are tags that I can safely replace with any other names of my choosing. I have the set of 4 install CDs and not the install DVD. Please let me know if that is not correct.

Further, I use "smart" to do things other than to install packages. For example, if I want to install a package for some program and I want to find out where the program's executable is going to be placed, I can find that out from "smart." I did not see that same capability with kyum.

Last edited by xode; 06-19-2006 at 03:48 PM.
 
Old 06-19-2006, 04:37 PM   #14
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Neither yum localinstall nor yum localupdate work with the yum version (i.e. 2.3.2.7) that is originally installed by the FC4 install CDs. You need yum 2.4.X for that and you can't get the yum that you do have to install it if you don't want to connect your computer directly to the net.
Its a pain in the backside, but things are going to be easier for FC users because starting from FC5 onwards, there are going to be re-spins of Fedora Core so that users can get isos of FC with updated packages.

Quote:
My understanding is that "[base dvd]" and "name=Fedora Base DVD" are tags that I can safely replace with any other names of my choosing. I have the set of 4 install CDs and not the install DVD. Please let me know if that is not correct.
I'm not really sure since I prefer using the online repo. I am sure it will work fine if you configure each individual cdrom as a seperate source in /etc/yum/repos.d.

Quote:
Further, I use "smart" to do things other than to install packages. For example, if I want to install a package for some program and I want to find out where the program's executable is going to be placed, I can find that out from "smart." I did not see that same capability with kyum.
Thats a good feature. YUMEX has this but the last time I tried using it, it didn't work properly. Anyway rpm itself and kpackage can show the list of files in a package (whether its installed or not).
 
Old 06-19-2006, 05:08 PM   #15
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
Quote:
From reddazz

Its a pain in the backside, but things are going to be easier for FC users because starting from FC5 onwards...
This may be true and maybe lion_heart_300 might even find it useful, once he has his system on its feet so to speak. However, it doesn't help him out now whereas "smart" will, and that is why I recommended "smart."

Quote:
From reddazz

Thats a good feature. YUMEX has this but the last time I tried using it, it didn't work properly. Anyway rpm itself and kpackage can show the list of files in a package (whether its installed or not).
I wish that I had kpackage. But, it has been mysteriously left out of the FC4 version of the kdeadmin rpm. I hunted high and low all over the net for an alternative rpm that would have kpackage, and even considered compiling and installing kpackage's source code, all without success. Then, by pure chance, I found "smart."
 
  


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
How do I re-package a .src.rpm to mdk.rpm GlennsPref Mandriva 3 05-20-2006 06:41 PM
Removing an RPM package from within another RPM package jimwelc Linux - Software 7 05-12-2006 02:13 PM
RPM package DanielTan Linux - Software 7 10-12-2005 02:39 AM
AS 2.1 RPM package dvong3 Linux - Software 0 11-07-2003 03:47 AM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 07:53 AM

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

All times are GMT -5. The time now is 05:03 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