Results 1 to 6 of 6
  1. #1
    Join Date
    May 2012
    Posts
    53
    Thanks
    2
    Thanked 1 Time in 1 Post
    Rep Power
    2

    listing packages with yum or apt-get

    does anyone know the commands to list packages on yum or apt-get.

    i know yum grouplist on CentOS and like it cause I like to remove group packages that I do not use.

    I use the | tee to list the output on a .txt file to study the groups.

    But I can't find any commands to list single installed packages on CentOS.

    I also use Linux Mint and would like to know of any similiar commands that list either group or single packages and | tee the output to a .txt file if this is possible.

    I like to take notes like this as I learn to customize and experiment with different packages.

    And if anyone knows how to list repositories, that would be great if you could share that as well.

    any help would be much appreciated.

    Thanks




  2. #2
    Join Date
    Feb 2012
    Location
    UTC -8 'tween the mtns, N of the Columbia R
    Posts
    202
    Thanks
    4
    Thanked 16 Times in 15 Posts
    Rep Power
    2
    search engines are friends of yours -- use them (we all had to)

    Also, see Fred's and others' How2's here, below.

  3. #3
    Join Date
    May 2012
    Posts
    53
    Thanks
    2
    Thanked 1 Time in 1 Post
    Rep Power
    2
    thanks, fair advice.

    i found

    yum list all | tee boot.txt

    which was what i was looking for in rpm

    still looking for the apt-get equivalent

  4. #4
    Join Date
    Feb 2012
    Location
    UTC -8 'tween the mtns, N of the Columbia R
    Posts
    202
    Thanks
    4
    Thanked 16 Times in 15 Posts
    Rep Power
    2
    OP said, " . . . commands to list single installed packages on CentOS."
    -----------------------------------------------------------------------------------------

    Download and install the rpm forge release, which will enable YUM to access:

    wget http://packages.sw.be/rpmforge-relea...l5.rf.i386.rpm
    rpm -i rpmforge-release-0.3.6-1.el5.rf.i386.rpm

    After this is installed (it takes a long time), you can install APT.

    You should now be able to use apt-get and install the apt repositories.
    You will have to add your sources at /etc/apt/sources.list.d or to /etc/apt/sources.list

    SOURCE: http://support.rightscale.com/06-FAQ..._based_images?
    ------------------------------------------------------------------------------------------
    (italics mine)

  5. #5
    Join Date
    May 2012
    Posts
    53
    Thanks
    2
    Thanked 1 Time in 1 Post
    Rep Power
    2
    thanks pane-free I am a little side tracked right now with learning network config issues but this thread is a great reference as I learn the overall structure of linux.

    i am focused on learning both yum and apt-get

    thanks again

  6. #6
    Join Date
    Dec 2011
    Posts
    71
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    2
    On Fedora (probably works on CentOS too) I routinely use yum search to find a package to install. For example, this command lists lots and lots of editors and editor helper packages:
    Code:
    yum search editor
    If I want to see information about a package before I install it, I do this:
    Code:
    yum info joe
    And to install (if you don't have sudo setup, then use su first):
    Code:
    sudo yum install joe
    Once it's installed, I can see all about it and what files it includes with the rpm command:
    Code:
    rpm -qil joe
    But if I want to peek inside the package without installing it, I use the little-know repoquery command:
    Code:
    repoquery -il joe | less
    Quote Originally Posted by pane-free View Post
    search engines are friends of yours -- use them (we all had to)
    Yeah, but that's not helpful. He asked for help.

 

 

Similar Threads

  1. problem with apt-get commands
    By aliEnsi in forum Ubuntu
    Replies: 9
    Last Post: 04-11-2013, 07:17 AM
  2. command for listing cores using threads
    By otto33 in forum General Linux
    Replies: 3
    Last Post: 02-17-2012, 07:22 AM
  3. 2 Useful plugins for Yum
    By Fred in forum Linux News
    Replies: 0
    Last Post: 12-28-2011, 10:48 PM
  4. 2 Useful plugins for Yum
    By Fred in forum Linux News
    Replies: 0
    Last Post: 12-28-2011, 10:13 PM
  5. HOWTO: Use APT without the Bloat
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-18-2011, 12:30 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,586
Threads: 3,921
Posts: 9,448
Top Poster: Fred (1,486)
Welcome to our newest member, mortizglez

» Links



Powered by vBadvanced CMPS