Announcement

Collapse
No announcement yet.

Aptoncd and the /var/cache/apt/archives ?

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

    Aptoncd and the /var/cache/apt/archives ?

    OK I'v got a box that I just put 9.10 on (thare will be a user testamoney shortley) but it's going to be difacult to get it on line (but I may resort to it) the queshton is ..........is thare a way to regenerate a full package set of ALL my packages in /var/cache/apt/archives?

    I'v run apt-get clean a few times and aptoncd get's it's packages from thare so what's in it (/var/cache/apt/archives) now isent compleat and all the dependenceys are NOT met

    so I thought if it could be regenerated I could get a cd/dvd of a set of packages for a well setup system?

    eney ideas people??

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

    #2
    Re: Aptoncd and the /var/cache/apt/archives ?

    Code:
    dpkg --get-selections > installed-software
    --get-selections [package-name-pattern...]
    Get list of package selections, and write it to stdout. Without
    a pattern, non-installed packages (i.e. those which have been
    previously purged) will not be shown.
    Code:
    dpkg --set-selections < installed-software
    --set-selections
    Set package selections using file read from stdin. This file
    should be in the format '<package> <state>', where state is one
    of install, hold, deinstall or purge. Blank lines and comment
    lines beginning with '#' are also permitted.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Aptoncd and the /var/cache/apt/archives ?

      well dpkg --get-selections > installed-software .... made a nice file of all the installed packages

      but i'm not shure what dpkg --set-selections < installed-software ........did ?

      but it dident put the .deb's back in /var/cache/apt/archives ......ware aptoncd is looking for them?

      you may half to walk me thrugh this.................papa Snowhog

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

      Comment


        #4
        Re: Aptoncd and the /var/cache/apt/archives ?

        man dpkg



        Code:
        apt-get install --download-only
        This would be the third command. The first one creates a list of packages that are installed on the current system. The second command marks the packages with the flag 'install'. The third command will download all the marked packages, but won't install them. I believe I have this all correct.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Aptoncd and the /var/cache/apt/archives ?

          AAAAA ............I did look at man dpkg.........but saw nothing that planley sead to do that

          thanks Mr Snowhog if it works I owe you a beer or2

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

          Comment


            #6
            Re: Aptoncd and the /var/cache/apt/archives ?

            Hummm not yet

            vinny@desktop:~$ sudo dpkg --set-selections < installed-software
            vinny@desktop:~$ sudo apt-get install --download-only
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            The following packages were automatically installed and are no longer required:
            exchange ecomorph-core libscrollkeeper0
            Use 'apt-get autoremove' to remove them.
            0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
            vinny@desktop:~$
            still reading and trying though............no beer yet

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

            Comment


              #7
              Re: Aptoncd and the /var/cache/apt/archives ?

              Yup. Agreed. Did my own further reading. After running my first two commands, this should action on the flagged packages and just download them.
              Code:
              aptitude install -d
              As a special case, “install” with no arguments will act on any stored/pending actions.
              So,
              Step 1:
              Code:
              dpkg --get-selections > installed-software
              Step 2:
              Code:
              dpkg --set-selections < installed-software
              Step 3:
              Code:
              aptitude install -d
              But, you're the tester, so...
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Re: Aptoncd and the /var/cache/apt/archives ?

                not yet

                vinny@desktop:~$ sudo dpkg --set-selections < installed-software
                [sudo] password for vinny:
                vinny@desktop:~$ sudo aptitude install -d
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                Initializing package states... Done
                Writing extended state information... Done
                The following packages will be REMOVED:
                ecomorph-core{u} exchange{u} libscrollkeeper0{u}
                0 packages upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
                Need to get 0B of archives. After unpacking 5,968kB will be freed.
                Do you want to continue? [Y/n/?] y
                Invalid response. Please enter a valid command or '?' for help.
                Do you want to continue? [Y/n/?] Y
                Writing extended state information... Done
                Reading package lists... Done
                Building dependency tree
                Reading state information... Done
                Reading extended state information
                Initializing package states... Done
                acualey have work today so I wont be back till about 4-5:00 PM EST.US

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

                Comment


                  #9
                  Re: Aptoncd and the /var/cache/apt/archives ?

                  Originally posted by Snowhog
                  Step 3:
                  aptitude install -d
                  or

                  sudo apt-get dselect-upgrade

                  What I do is back up /var/apt/cache/archives and restore it when I reinstall - then do

                  dpkg --set-selections < installed-software

                  then

                  sudo apt-get update

                  to get all the packages reregistered - then do the

                  sudo apt-get dselect-upgrade

                  to reinstall the packages.
                  we see things not as they are, but as we are.
                  -- anais nin

                  Comment


                    #10
                    Re: Aptoncd and the /var/cache/apt/archives ?

                    I was just looking at my AptonCD Ubuntu last night. I was under the impression that AptonCD was going to do all the heavy lighting. Maybe I'm wrong but then what's the purpose of AptonCD?
                    Boot Info Script

                    Comment


                      #11
                      Re: Aptoncd and the /var/cache/apt/archives ?

                      Originally posted by verndog
                      I was just looking at my AptonCD Ubuntu last night. I was under the impression that AptonCD was going to do all the heavy lighting. Maybe I'm wrong but then what's the purpose of AptonCD?
                      To make packages available to machines that have no connectivity or slow connectivity ;-)
                      we see things not as they are, but as we are.
                      -- anais nin

                      Comment


                        #12
                        Re: Aptoncd and the /var/cache/apt/archives ?

                        Originally posted by wizard10000
                        Originally posted by Snowhog
                        Step 3:
                        aptitude install -d
                        or

                        sudo apt-get dselect-upgrade

                        What I do is back up /var/apt/cache/archives and restore it when I reinstall - then do

                        dpkg --set-selections < installed-software

                        then

                        sudo apt-get update

                        to get all the packages reregistered - then do the

                        sudo apt-get dselect-upgrade

                        to reinstall the packages.
                        well you can see from my last post ubuve that (aptitude install -d) dident do it............ and thars no backup of the /var/apt/cache/archives we were trying to redownload all the packages in the .txt file "installed-software"
                        created with "dpkg --get-selections > installed-software"
                        to /var/apt/cache/archives ......so I could make a backup with aptoncd and transfer to .................this computer............ya I just gave up on it last night and took the network card out of my mane box and put it in this one and spent the evening updating installing extras and seting it up the way I like

                        the closest thing I got to restoring all the installed packages to /var/apt/cache/archives was

                        aptitude -d install < installed-software

                        from the DIR. that contand the .txt file installed-software ...........but the konsole whent krazy and for a minet looked like I had just foobard my box........and seteled down with multipall layers of stuff on it.
                        1 some warnings that I cant remember
                        2 what looked like a terminal type aptitude screen
                        3 under everything a printout (using "more") of the 3100 package installed-software txt file

                        but the box is fine however nothing got DL'd to /var/apt/cache/archives

                        eney way it dosent mater eneymore as the box I was trying to make the APtoncd cd for is this one I'm typing from and it's ok now..............now mabey I can make the cd on this one (havent run apt-get clean on it ) and have for futer installs

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

                        Comment

                        Working...
                        X