Announcement

Collapse
No announcement yet.

Alias entry to cleanly list all your repositories

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Alias entry to cleanly list all your repositories

    I have a reasonably extensive .bash_aliases file. This one I find quite useful, and other (I think) will as well.
    Code:
    alias sL='grep "^[^#]" /etc/apt/sources.list && cat /etc/apt/sources.list.d/*.list | grep "^[^#]"'
    This single alias produces a 'clean' listing of all your active repositories. Here are mine, on my Toshiba, using this alias:
    deb http://us.archive.ubuntu.com/ubuntu/ saucy main restricted
    deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
    deb http://us.archive.ubuntu.com/ubuntu/ saucy universe
    deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates universe
    deb http://us.archive.ubuntu.com/ubuntu/ saucy multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ saucy-updates multiverse
    deb http://us.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu saucy-security main restricted
    deb http://security.ubuntu.com/ubuntu saucy-security universe
    deb http://security.ubuntu.com/ubuntu saucy-security multiverse
    deb http://archive.canonical.com/ubuntu saucy partner
    deb http://extras.ubuntu.com/ubuntu saucy main
    deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu saucy main
    deb http://ppa.launchpad.net/kubuntu-ppa/beta/ubuntu saucy main
    deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu saucy main
    deb http://ppa.launchpad.net/samrog131/ppa/ubuntu saucy main
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    #2
    Alternative - inxi


    :~$ apt-cache show inxi

    Description: full featured system information script
    Inxi is a system information script that can display various things about
    your hardware and software to users in an IRC chatroom or support forum.
    It runs with the /exec command in most IRC clients.

    Homepage: http://code.google.com/p/inxi/
    Ubuntu packages: http://packages.ubuntu.com/search?ke...ll&section=all


    At here:

    rog132@saucybeta:~$ inxi -r
    Repos: Active apt sources in file: /etc/apt/sources.list
    deb http://fi.archive.ubuntu.com/ubuntu/ saucy main restricted
    deb http://fi.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
    deb http://fi.archive.ubuntu.com/ubuntu/ saucy universe
    deb http://fi.archive.ubuntu.com/ubuntu/ saucy-updates universe
    deb http://fi.archive.ubuntu.com/ubuntu/ saucy multiverse
    deb http://fi.archive.ubuntu.com/ubuntu/ saucy-updates multiverse
    deb http://fi.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
    deb http://security.ubuntu.com/ubuntu saucy-security main restricted
    deb http://security.ubuntu.com/ubuntu saucy-security universe
    deb http://security.ubuntu.com/ubuntu saucy-security multiverse
    deb http://archive.canonical.com/ubuntu saucy partner
    deb http://extras.ubuntu.com/ubuntu saucy main
    Active apt sources in file: /etc/apt/sources.list.d/opera.list
    deb http://deb.opera.com/opera/ stable non-free #Opera Browser (final releases)
    Active apt sources in file: /etc/apt/sources.list.d/samrog131-build-queue-saucy.list
    deb http://ppa.launchpad.net/samrog131/build-queue/ubuntu saucy main
    Active apt sources in file: /etc/apt/sources.list.d/samrog131-ppa-saucy.list
    deb http://ppa.launchpad.net/samrog131/ppa/ubuntu saucy main

    Earlier: http://www.kubuntuforums.net/showthr...l=1#post333318
    Last edited by Rog132; Sep 22, 2013, 01:40 PM.
    A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
    Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

    Comment


      #3
      OMG @Rog132 once again you pave the way with cool tools , this thing is awesome for getting system info .

      installing inxi was easy as ,,,,,,,,as root
      Code:
        cd /usr/local/bin && wget -Nc smxi.org/inxi && chmod +x inxi
      then as root
      Code:
      inxi -U
      to update it and install the man pages

      Code:
      vinny@vinny-HP-G62:~$ inxi -r
      Repos:     Active apt sources in file: /etc/apt/sources.list
                 deb http://us.archive.ubuntu.com/ubuntu/ quantal main restricted
                 deb-src http://us.archive.ubuntu.com/ubuntu/ quantal main restricted
                 deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates main restricted                                          
                 deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates main restricted                                      
                 deb http://us.archive.ubuntu.com/ubuntu/ quantal universe                                                         
                 deb-src http://us.archive.ubuntu.com/ubuntu/ quantal universe                                                     
                 deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe                                                 
                 deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe                                             
                 deb http://us.archive.ubuntu.com/ubuntu/ quantal multiverse                                                       
                 deb-src http://us.archive.ubuntu.com/ubuntu/ quantal multiverse                                                   
                 deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse                                               
                 deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse                                           
                 deb http://us.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse                    
                 deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse                
                 deb http://security.ubuntu.com/ubuntu quantal-security main restricted                                            
                 deb-src http://security.ubuntu.com/ubuntu quantal-security main restricted                                        
                 deb http://security.ubuntu.com/ubuntu quantal-security universe                                                   
                 deb-src http://security.ubuntu.com/ubuntu quantal-security universe                                               
                 deb http://security.ubuntu.com/ubuntu quantal-security multiverse                                                 
                 deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse                                             
                 deb http://extras.ubuntu.com/ubuntu quantal main                                                                  
                 deb-src http://extras.ubuntu.com/ubuntu quantal main                                                              
                 Active apt sources in file: /etc/apt/sources.list.d/blue-shell-firefox-kde-quantal.list                           
                 deb http://ppa.launchpad.net/blue-shell/firefox-kde/ubuntu quantal main                                           
                 deb-src http://ppa.launchpad.net/blue-shell/firefox-kde/ubuntu quantal main                                       
                 Active apt sources in file: /etc/apt/sources.list.d/ehoover-compholio-quantal.list                                
                 deb http://ppa.launchpad.net/ehoover/compholio/ubuntu quantal main                                                
                 deb-src http://ppa.launchpad.net/ehoover/compholio/ubuntu quantal main                                            
                 Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list                                            
                 deb http://dl.google.com/linux/chrome/deb/ stable main                                                            
                 Active apt sources in file: /etc/apt/sources.list.d/google-talkplugin.list                                        
                 deb http://dl.google.com/linux/talkplugin/deb/ stable main                                                        
                 Active apt sources in file: /etc/apt/sources.list.d/hannes-janetzek-enlightenment-svn-quantal.list                
                 deb http://ppa.launchpad.net/hannes-janetzek/enlightenment-svn/ubuntu quantal main                                
                 deb-src http://ppa.launchpad.net/hannes-janetzek/enlightenment-svn/ubuntu quantal main                            
                 Active apt sources in file: /etc/apt/sources.list.d/intellinuxgraphics.list                                       
                 deb https://download.01.org/gfx/ubuntu/12.10/main Ubuntu 12.10 #Intel Graphics drivers
                 Active apt sources in file: /etc/apt/sources.list.d/kubuntu-ppa-backports-quantal.list
                 deb http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu quantal main
                 deb-src http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu quantal main
                 Active apt sources in file: /etc/apt/sources.list.d/kubuntu-ppa-ppa-quantal.list
                 deb http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu quantal main
                 deb-src http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu quantal main
                 Active apt sources in file: /etc/apt/sources.list.d/medibuntu.list
                 deb http://packages.medibuntu.org/ quantal free non-free #Medibuntu - Ubuntu 12.10 "quantal quetzal"
                 Active apt sources in file: /etc/apt/sources.list.d/steam.list
                 deb http://repo.steampowered.com/steam/ precise steam
                 deb-src http://repo.steampowered.com/steam/ precise steam
                 Active apt sources in file: /etc/apt/sources.list.d/tomahawk-ppa-quantal.list
                 deb http://ppa.launchpad.net/tomahawk/ppa/ubuntu quantal main
                 deb-src http://ppa.launchpad.net/tomahawk/ppa/ubuntu quantal main
      this thing is cool ,,, but you could speend a week playing with all the options and things it will show ,,,,like
      Code:
      vinny@vinny-HP-G62:~$ inxi -t cm10
      Processes: CPU - % used - top  10 active 
                 1: cpu: 1.6% command: plasma-desktop pid: 2084
                 2: cpu: 1.1% command: firefox pid: 5403
                 3: cpu: 0.9% command: X pid: 1308
                 4: cpu: 0.6% command: kwin pid: 2075
                 5: cpu: 0.4% command: pulseaudio pid: 2182
                 6: cpu: 0.2% command: ksysguardd pid: 2091
                 7: cpu: 0.1% command: muon pid: 5473
                 8: cpu: 0.1% command: mysqld pid: 2118
                 9: cpu: 0.0% daemon: ~kworker/3:0~ pid: 7073
                 10: cpu: 0.0% daemon: ~kworker/u:2~ pid: 7072
                 Memory - MB / % used - top  10 active
                 1: mem: 162.89MB (4.2%) command: plasma-desktop pid: 2084
                 2: mem: 142.12MB (3.7%) command: firefox pid: 5403
                 3: mem: 104.88MB (2.7%) command: kwin pid: 2075
                 4: mem: 71.31MB (1.8%) command: X pid: 1308
                 5: mem: 58.96MB (1.5%) command: muon pid: 5473
                 6: mem: 58.07MB (1.5%) command: krunner pid: 2158
                 7: mem: 49.29MB (1.2%) command: dolphin pid: 2917
                 8: mem: 35.74MB (0.9%) command: virtuoso-t pid: 2253
                 9: mem: 34.29MB (0.8%) command: hp-systray (started by: python) pid: 2159
                 10: mem: 33.11MB (0.8%) command: kdeinit4: pid: 2043
      or

      Code:
      vinny@vinny-HP-G62:~$ inxi -F
      System:    Host: vinny-HP-G62 Kernel: 3.8.3-030803-generic i686 (32 bit) Desktop: KDE 4.11.1 Distro: Ubuntu 12.10 quantal
      Machine:   System: Hewlett-Packard product: HP G62 Notebook PC version: 0591130000202710010620100
                 Mobo: Hewlett-Packard model: 1425 version: 54.57 Bios: Hewlett-Packard version: F.37 date: 04/07/2011
      CPU:       Dual core Intel Core i3 CPU M 370 (-HT-MCP-) cache: 3072 KB flags: (lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) 
                 Clock Speeds: 1: 933.00 MHz 2: 933.00 MHz 3: 933.00 MHz 4: 933.00 MHz
      Graphics:  Card: Intel Core Processor Integrated Graphics Controller 
                 X.Org: 1.13.0 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@59.6hz 
                 GLX Renderer: Mesa DRI Intel Ironlake Mobile x86/MMX/SSE2 GLX Version: 2.1 Mesa 9.0.3
      Audio:     Card: Intel 5 Series/3400 Series High Definition Audio driver: snd_hda_intel 
                 Sound: Advanced Linux Sound Architecture ver: k3.8.3-030803-generic
      Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: r8169 
                 IF: eth0 state: down mac: 2c:27:d7:cf:df:91
                 Card-2: Ralink RT5390 Wireless 802.11n 1T/1R PCIe driver: rt2800pci 
                 IF: wlan0 state: up mac: c0:f8:da:a8:39:5e
      Drives:    HDD Total Size: 500.1GB (76.6% used) 1: id: /dev/sda model: WDC_WD5000BEVT size: 500.1GB 
      Partition: ID: / size: 29G used: 17G (59%) fs: ext3 ID: swap-1 size: 4.19GB used: 0.00GB (0%) fs: swap 
      RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
      Sensors:   System Temperatures: cpu: 54.0C mobo: N/A 
                 Fan Speeds (in rpm): cpu: N/A 
      Info:      Processes: 190 Uptime: 1 day Memory: 818.5/3833.6MB Client: Shell (bash) inxi: 1.9.14
      ,,,,,,,,,,,,,,, and lots more ,,,,,,,,,,, I'll calm down now

      VINNY
      i7 4core HT 8MB L3 2.9GHz
      16GB RAM
      Nvidia GTX 860M 4GB RAM 1152 cuda cores

      Comment


        #4
        [shameless_plug]
        Harold Hope (H2 on irc.oftc.net) is the author of inxi, as well as several other very useful 'scripts'. He, like many other Open Source Software developers, provides his scripts for free. But, there is no such thing as a 'free meal', and developing and maintaining OSS takes time and money.

        He has a website for his scripts: http://smxi.org/site/install.htm

        If you find his scripts useful, please consider donating to his efforts (I have, many times) in what ever amount you are comfortable with. He is one of the 'good guys', and he deserves to be supported in his efforts.
        [/shameless_plug]
        Last edited by Snowhog; Sep 29, 2013, 03:46 PM.
        Using Kubuntu Linux since March 23, 2007
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment

        Working...
        X