FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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.
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.
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
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.
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
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.
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).
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."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.