The changes in the expression of genes related to digestion and metabolism may be various in different dietary mammals from juvenile to adult, especially, the giant panda (Ailuropoda melanoleuca) and red panda (Ailurus fulgens), which were once carnivores but have shifted to being specialized bamboo eaters, are unique features of their changes are more unclear. To elucidate the changing patterns of gene expression related to digestion and metabolism from juvenile to adult in different dietary mammals, we performed transcriptome analysis of the liver or pancreas in giant and red pandas, herbivorous rabbits (Oryctolagus cuniculus) and macaques (Macaca mulatta), carnivorous ferrets (Mustela putorius furo), and omnivorous mice (Mus musculus) from juvenile to adult. During the transition from juvenile to adulthood, giant and red pandas, as well as rabbits and macaques, show significant upregulation of key genes for carbohydrate metabolism, such as starch hydrolysis and sucrose metabolism, and unsaturated fatty acid metabolism, such as linoleic acid, while there is no significant difference in the expression of key genes for fatty acid β-oxidation. A large number of amino acid metabolism related genes were upregulated in adult rabbits and macaques compared to juveniles. While adult giant and red pandas mainly showed upregulation of key genes for arginine synthesis and downregulation of key genes for arginine and lysine degradation. In adult stages, mouse had significantly higher expression patterns in key genes for starch hydrolysis and sucrose metabolism, as well as lipid and protein metabolism. In contrast to general expectations, genes related to lipid, amino acid and protein metabolism were significantly higher expressed in adult group of ferrets, which may be related to their high metabolic levels. Our study elucidates the pattern of changes in the expression of genes related to digestion and metabolism from juvenile to adult in different dietary mammals, with giant and red pandas showing adaptations associated with specific nutritional limitations of bamboo.