Server :: Running "yum Check-update" On A List Rather Than Installed Packages
Nov 24, 2010
I've been google'ing around recently for some good solutions for creating local yum "update" repositories without syncing entire repositories. (or adding hundreds of exclude statements in config files)
I have several boxes with a common base build (centos 5.5/x86_64), one has nagios3, another has apache, and another tomcat6 (also a couple of others) For tomcat and nagios I'm obviously using 3rd party repositories (jpackage, epel, rpmforge to name a few) Everything is installed via RPM from kickstart.
I would like to make an updates repository which contains the updates for everything that's installed (including centos base).
Updates will be downloaded on a separate box, but not sure how to get the list of packages required on that box where the packages are not actually installed. I've looked at reposync and mrepo, but appear to be syncing from what's available rather than what's required.
I was hoping that I can provide an "rpm -qa" output, compare this to a "yum list" or perhaps running "yum check-update" on a list rather than installed packages. I could then use the yum-downloadonly module to get the packages which have changed from available sources.
I was working on my flash drive install of Ubuntu, when I squashfsed my /usr. Long story short, I some how ended up with a working /usr, but with a few packages marked as installed, but not having its components installed (emacs). When I try to remove emacs (emacs23-nox), it gives me numerous errors about files (all relating to emacs) not existing (all in /usr). Thus my questions are as follows:
1) Is there a way to force the removal without it caring about missing packages?
-OR-
2) Is there a way to reload which packages are installed by checking which files exist, etc?
When I installed CentOS v5, I declined the FTP server that cane with it because I have used and prefer ProFTPd. Now I'm not so sure what's running. How do I check what FTP is installed and / or running? ALSO there seem to be TWO ProFTPd conf files, one at:
[code]...
They have different content. Which is the one that is being used?
I just installed ubuntu 10.10, and im triying to update, when i uncheck the packages that i dont want and click on the "install updates" button in the update manager, the update manager check it again and download the packages that i dont want
I want to know that is there any command by which i can check which type of hardware devices are installed in my Linux box like SVGA,Sound Card,LAN Card.
How do you list only installed packages that were not installed automatically? I see in aptitude that it will list whether they were installed automatically or not, but it is hard to find them because the are a lot more installed automatically than non-automatically.
I can't remember if branch is the correct term but I am talking stable, testing or unstable.
i have looked through the dpkg and aptitude man pages but can't seem to find if there is a way to search which packages on the system are installed from a specific branch. Is there a way to do this?
I want to list all installed packages by keyword. For example I want to know what packages were installed related to "game". How can I do that in Fedora?
I tried 'yum list installed', 'you search' ... but still can't find a solution. I'm not a yum expert .
In MacPorts, the ports I would be looking for are the requested ports. They have a system so that when you install a port, that port is marked as requested. Also if you want to keep a port that was installed as a dependency, you can set it to be requested manually. Does the Debian system have the same functionality? It seems that there are some utilities that get that done..
I'm working on a script that keeps track of user explicitly installed packages (no deps, no default packages), where can I found a list of ubuntu natty preinstalled packages ? Is there some file in the filesystem or in installation disc ?
I would like to know what packages are currently installed in my linux machine. My machine is running CentOS 5.4. There is no GUI. All I have is command line interface.
On two Centos5 servers, yum gives a segmentation fault error when trying 'yum update' or 'yum check-update' after running 'yum clean' :
[Code]....
The error is the same for the other computer except while attempting to update the rpmforge repository. Nothing has really changed on the servers in some time and 'yum update' worked fine on each yesterday and I have no idea why they would both suddenly fail!
I have realized that in not installing suggested packages I've missed out on a ton of doc files, which would really come in handy while I'm away from internet access.
Is there a way take a list of currently installed packages and find out which of them have doc packages available? Possibly install them in a single step? I have been playing around with aptitude and apt-rdepends, but I'm not quite sure how to go about this. Somehow take a list of installed packages, run it through an apt-cache search, and end up with a list of -doc packages to install? My bash-fu isn't the greatest, and I suppose this could be a bad idea to begin with.
I have a system that will not boot as /usr has been destroyed and I would like to get a list of installed packages before re-installing. I know that it's possible to get this using dpkg or apt, but I cannot run those.
Where in the filesystem is this information stored and what's the best way to get a list of installed apps from the files?
I wounder how I should do to find out what packages I have explicitly installed on the system, NOT including the dependencies. The purpose is to get a figure of what packages I need to install when I reinstall my system.In Gentoo one can look at the world-file (/var/lib/portage/world) which is a list of my explicitly installed packages, not including system packages (located in /var/lib/portage/system)
I'm migrating to a new Lucid Lynx machine, and I'd like to install all of the packages that I currently have installed on my old machine.Is there a way to query a list of all packages that are currently installed on a particular system, such that I could simply throw this list at apt-get on a new system
I'd like to list all packages I installed since the installation. The tricky part is that I don't care for dependencies - only clean list of what I ordered to install. I went through man pages and I did not find anything relevant. Also /var/log/apt/history* doesn't say what I requested and what came as a dependency.
For gentoo-aware folks, I am looking for something like "world" file.
I am having to reinstall ubuntu because of my silly mistake. Anyway, my questions is, when booting from live cd, how would I get the terminal to print out what I have listed on my actual hard drive? I know this works if I am logged into my actual Ubuntu hard drive, but I can't do that: dpkg --get-selections > installed-software.I am trying to get a list of installed packages because I can't actually boot into my current ubuntu hard drive
I have a dead system that was running Debian Linux (lenny). I can boot into emergency mode, but nothing else. I will likely have to reinstall Debian. I've read lots of things online about how to get a list of currently installed packages. Which is fine and dandy if the system is working and I can log into it. I'm basically wanting to extract such a list from a hard drive containing an installation I can't log into normally. I can access the filesystem just fine, and nothing related to aptitude has been damaged.
Is there any way that I can get a list of packages (on the command line) that have been installed manually i.e. all those that haven't been installed as dependencies? I think this must be possible as apt seems to know which dependency packages are no longer required i.e. apt-get autoremove
Can I keep the old 32bit_testing /home with all the hidden directories there when moving to 64bit_testing?
Is there a way to export a list of all installed packages in aptitude or synaptic, so that when reinstalling, it can be easily imported? (reinstalling the same system)
I've been a long time ubuntu/debian user, and I decided to give fedora a try. Durng my first set of updates after install, the updater (gpk) seemed to stall on an 'updating libraries' step (it lasted for over 12 hours). Anyway, I force quit the program, restarted the system, and all appears fine. What I wanted to ask is this; is there some way to check the yum log to see if the update completed successfully, or an equivalent to 'apt-get -f install' to fix any broken/partially installed packages.