Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want know, if there is any command to run apt-get update in GUI like in the picture following:

GUI frontend of apt-get update

All i want to do is to write a script which will update the software sources through this gui manager. So that i can make it more user friendly. I need the command to do this. Please help.

share|improve this question

2 Answers 2

I can't tell you exactly, as I'm not using a Ubuntu system at the moment, but I can tell you how to find the command.

  1. Open a terminal and run this command (source):

    xprop | awk '($1=="_NET_WM_PID(CARDINAL)") {print $3}' | xargs ps h -o cmd
    
  2. Click on a running instance of the GUI.

  3. The command used to run it should then be printed in the terminal. You may have to adapt it slightly for use in a Bash script, though.

share|improve this answer
    
Thanks for your help. I learnt that the window is not a programm. sub programm of synaptic/software updator. So need to find if some complete software like what i want exists. –  Pavak Paul Feb 18 at 11:26

You can't do apt-get update from command line of the update manager.

To run the command is

update-manager

man update-manaer gives:

     --data-dir=DATA_DIR
          Directory that contains the data files

   -c, --check-dist-upgrades
          Check if a new distribution release is available

   -d, --devel-release
          Check if upgrading to the latest devel release is possible

   -p, --proposed
          Upgrade  using  the  latest  proposed  version  of  the  release
          upgrader

   --no-focus-on-map
          Do not focus on map when starting

   --dist-upgrade
          Try to run a dist-upgrade

so you can move over by running

update-manager --dist-upgrade
share|improve this answer
1  
Isn't the OP asking for the GUI equivalent of update, not dist-upgrade? –  minerz029 Feb 18 at 8:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.